Docker image for generating an SSL cert for development use
353
Generate an SSL cert for development use.
docker run --rm -v "$PWD/data":/cert --env "DOMAIN=m.com" lightster/dev-ssl
If you want to use a different domain or name your cert files differently, the following environment variables can override the defaults:
DOMAIN defaults to b.comCERT_DIR defaults to /certFILE_NAME defaults to devKEY_PATH defaults to ${CERT_DIR}/${FILE_NAME}.keyCSR_PATH defaults to ${CERT_DIR}/${FILE_NAME}.csrCRT_PATH defaults to ${CERT_DIR}/${FILE_NAME}.crtThe cert is self-signed, so web browsers will give warnings about the cert being invalid. If you want to bypass these notifications, on macOS you can add the cert to the system keychain using:
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain data/dev.crt
Content type
Image
Digest
Size
4.7 MB
Last updated
about 8 years ago
docker pull lightster/dev-ssl