Invalid SSL cert (self signed) on OAuth server


Following the migration from RocketChat installed with apt to Docker, I face a problem with SSL certificates.
For authentication, our server uses NextCloud OAuth and it uses a self-signed certificate.
How can I add that certificate to the docker container so that authentication is possible?
Thank you!