This image generates a self-signed SSL/TLS certificate.
The certificate server name is specified using the commandline option to set the SERVER environment variable.
The certificate subject organization is specified using the commandline option to set the SUBJECT environment variable.
An example of generating a certificate for server "server.example.com" using the standard CA organization (assuming you tag the image as jacoelho/genearate-certificate):
docker run --rm -v $(pwd):/certificates -e "SERVER=server.example.com" jacoelho/generate-certificateOr if you want to set, for example an organization:
docker run --rm -v $(pwd):/certificates -e "SERVER=server.example.com" -e "SUBJECT=/C=CA/ST=Canada/L=Canada/O=IT" jacoelho/generate-certificatefor the specified server will generate:
Content type
Image
Digest
sha256:3ae47870c…
Size
4.9 MB
Last updated
over 8 years ago
docker pull jacoelho/generate-certificate