SSL certificate from environment #9904
-
I have the following code running for testing:
For production, I would like to store the CA certificate, client certificate, and private key in environment variables instead of using files. For the CA certificate, I can decode it from an environment variable like this: QuestionIs there an equivalent approach for handling the certfile and keyfile without saving them as temporary files? I would like to load the client certificate and private key directly from memory. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
SSLContext doesn't provide an API for loading certs from memory yet. |
Beta Was this translation helpful? Give feedback.
SSLContext doesn't provide an API for loading certs from memory yet.
As a workaround, you can get a certificate from enviar and put it in a temporary file for later loading.