Created
August 26, 2021 10:13
-
-
Save patriciomg/0eebb74536f8d5baf5e1bca06c08a394 to your computer and use it in GitHub Desktop.
Self generated certificates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://www.devtech101.com/2017/05/18/gotchas-tips-creating-private-docker-registry-self-signed-certificate/ | |
| mkdir -p /docker-data/registry/{data,ssl,config} | |
| docker run --rm -v /docker-data/registry/ssl:/certs \ | |
| -e SSL_IP=10.10.10.10 \ | |
| -e SSL_DNS=docker.domain.com \ | |
| -e SSL_SUBJECTdocker.domain.com \ | |
| -e CA_SUBJECT=docker.domain..com \ | |
| -e CA_EXPIRE=1095 \ | |
| paulczar/omgwtfssl | |
| docker run -v ~/tmp/certs:/certs \ | |
| -e SSL_SUBJECT="my-web.docker" \ | |
| -e CA_SUBJECT="my-web.docker" \ | |
| -e CA_EXPIRE=1095 \ | |
| paulczar/omgwtfssl |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
files created:
./ca-key.pem
./key.pem
./cert.pem
./key.csr
./ca.srl
./openssl.cnf
./ca.pem
./secret.yaml
Copy and set
cert.pem as SSLCertificateFile
key.pem as SSLCertificateKeyFile
e.g.:
SSLEngine On
SSLCertificateFile /opt/ssl/cert.pem
SSLCertificateKeyFile /opt/ssl/key.pem