rapid-animal-63342
04/09/2024, 7:54 PMchilly-king-10285
04/09/2024, 7:55 PMchilly-king-10285
04/09/2024, 7:55 PMopenssl
command to do this: bash openssl genrsa -out key.pem 4096 openssl req -new -x509 -sha256 -key key.pem -out cert.crt -days 365
2. Encode your certificates in base64 format: bash SERVE_TLS_CERT_BASE64=$(base64 -i cert.crt) SERVE_TLS_KEY_BASE64=$(base64 -i key.pem)
3. Alternatively, you can specify the path to your certificates: bash SERVE_TLS_KEY_PATH=/path/to/key.pem SERVE_TLS_CERT_PATH=/path/to/cert.crt
4. If you're running Docker locally, you can use the following command to run your Ory Hydra instance with your certificates: bash docker run ... \ -e SERVE_TLS_CERT_BASE64="$SERVE_TLS_CERT_BASE64" \ -e SERVE_TLS_KEY_BASE64="$SERVE_TLS_KEY_BASE64" \ ...
5. Or you can mount the files using --mount
and linking to the files. Please note that TLS is not enabled and set to false
by default. You need to check under tls
in the [configuration](https://www.ory.sh/docs/hydra/reference/configuration) to enable and configure TLS for self-hosted Ory Hydra. For more details, you can refer to the [Ory Hydra documentation](https://www.ory.sh/docs/hydra/self-hosted/ssl-https-tls). Please note that the instructions above are based on the latest version of Ory Hydra and there might be slight differences if you're using version 1.0.0. Always refer to the documentation of the specific version you're using.rapid-animal-63342
04/09/2024, 7:55 PMchilly-king-10285
04/09/2024, 7:56 PMchilly-king-10285
04/09/2024, 7:56 PM