broad-wolf-22440
05/16/2025, 4:52 AMbrief-egg-61061
05/16/2025, 4:52 AMbrief-egg-61061
05/16/2025, 4:52 AMopenssl genrsa -out key.pem 4096 openssl req -new -x509 -sha256 -key key.pem -out cert.crt -days 365
2. Provide Certificates to Ory Keto While the exact environment variables or configuration keys for Keto are not explicitly listed in the knowledge sources, Ory services typically allow you to provide certificate and key files via environment variables or configuration file paths. For example, with Ory Hydra and Kratos, you can use variables like SERVE_TLS_CERT_PATH
and SERVE_TLS_KEY_PATH
or their base64 equivalents. For Docker, you would mount the files and set the environment variables accordingly: docker run ... \ -e SERVE_TLS_CERT_PATH=/path/to/cert.crt \ -e SERVE_TLS_KEY_PATH=/path/to/key.pem \ ...
3. Reference Configuration The Keto CLI documentation mentions that all configuration can be set via environment variables or a config file, and refers to the [configuration reference](https://www.ory.sh/docs/keto/reference/configuration/) for details. However, the specific keys for TLS are not detailed in the provided sources. You should consult the latest [Keto configuration reference](https://www.ory.sh/docs/keto/reference/configuration/) for the exact keys. 4. Run Keto with the Config Start Keto with your configuration file or environment variables: keto serve --config /path/to/config.yaml
Note: - TLS is not enabled by default. You must explicitly configure it. - It is common practice to terminate TLS at a gateway or load balancer in production, rather than directly on Keto, as recommended in the production guide. This means you might not need to enable TLS on Keto itself if you use a reverse proxy or API gateway in front of it [Prepare for production](https://www.ory.sh/docs/keto/guides/production/). Summary: - Generate or obtain TLS certificates. - Configure Keto to use them via environment variables or config file (consult the [Keto configuration reference](https://www.ory.sh/docs/keto/reference/configuration/) for exact keys). - Consider terminating TLS at a gateway or load balancer for production deployments. I'm sorry, but the knowledge sources do not provide the exact configuration keys for enabling TLS in Ory Keto. Please refer to the official [Keto configuration reference](https://www.ory.sh/docs/keto/reference/configuration/) for the most up-to-date and detailed information.broad-wolf-22440
05/16/2025, 4:57 AMbrief-egg-61061
05/16/2025, 4:57 AMbrief-egg-61061
05/16/2025, 4:57 AM