Docker container for creating an x509 certificate authority and zero to many certificates
470
Docker container for creating an x509 certificate authority and zero to many certificates, signed by that authority
First checks to see if certificate authority files exist. If they don't, it will create a new certificate authority. It then creates new certificates (from a list of certificate "common names"), unless they exist already.
Certificates are created in /certs. It's a good idea to have this as a shared volume, so you can use the certificates in other containers.
The docker image exits once it has completed, and can be run any number of times without undue side effects.
See example Docker Compose file.
docker run \
-v `pwd`/certs:/certs \
-e CERTS='host1 host2 host3' \
-e AUTHORITY_NAME=Automated \
-e AUTHORITY_PASSWORD=PLEASE_CHANGE_ME \
-e COMPANY=COMPANY_NAME \
-e DEPARTMENT=Operations \
-e COUNTRY_CODE=GB \
-e STATE=London \
-e CITY=London \
certificatemaster_certs
As per the example Docker Compose file, you'll want to have /certs as a volume, so you can use these certificates.
Content type
Image
Digest
Size
150.2 MB
Last updated
over 9 years ago
docker pull dougg/certificate-master