Reputation: 31
I am wondering that is there any good way to import the certificate to container from the host(certificate is not built-in the image)? Any solution for both Linux and Windows container?
Here is a possible solution for Linux container/host from other's post I have found.
P.S. The certificate is not with the code. I don't think it is a good idea to put the certificate with the code, especially the private key. Although, the certificate could be installed to image via docker build flow in this case.
Upvotes: 0
Views: 520
Reputation: 3
There're multiple ways to do so. 1. In case you are deploying your docker image to Kubernetes, you can use Secret https://kubernetes.io/docs/concepts/configuration/secret/ 2. Otherwise, you can try other keys/secrets management services such as Azure KeyVault.
Upvotes: 1