Docker image to create SSL certs with Let's Encrypt Certbot.
1.2K
Docker image to create SSL certs with Let's Encrypt Certbot. This is meant to be used for SSL cert automation and also has the ability to add certificates to a Java keystore. This uses the new "certbot" tool, not the legacy "letsencrypt-auto" tool.
docker run -it --rm --name autocert \
-p 80:80 -p 443:443 \
-v autocert-conf:/etc/letsencrypt \
viyh/autocert \
autocert-create \
--domains "test.uberboxen.net test1.uberboxen.net test2.uberboxen.net" \
--email "[email protected]"
--domains (required) - Space-separated list of domains to add to the SSL
certificate. *All domains that are being added to the cert must resolve
to the host wher this container is running.
--email (optional) - Email address for the administrator on the SSL
certificate. By default, the first domain in CERT_DOMAINS will be used.
docker run -it --rm --name autocert \
-p 80:80 -p 443:443 \
-v autocert-conf:/etc/letsencrypt \
viyh/autocert \
autocert-renew
docker run -it --rm --name autocert \
-v autocert-conf:/etc/letsencrypt \
viyh/autocert \
autocert-show <DOMAIN> <TYPE>
DOMAIN (required) - The domain of the key/cert/chain to show.
TYPE (required) - One of: key, cert, chain, fullchain
docker run -it --rm --name autocert \
-v autocert-conf:/etc/letsencrypt \
viyh/autocert \
autocert-show test.uberboxen.net key
docker run -it --rm --name autocert \
-v autocert-conf:/etc/letsencrypt \
viyh/autocert \
autocert-show test.uberboxen.net cert
docker run -it --rm --name autocert \
-v autocert-conf:/etc/letsencrypt \
viyh/autocert \
autocert-show test.uberboxen.net chain
docker run -it --rm --name autocert \
-v autocert-conf:/etc/letsencrypt \
viyh/autocert \
autocert-show test.uberboxen.net fullchain
Mount the keystore that you want to add/update to /keystore.
docker run -it --rm --name autocert \
-v autocert-conf:/etc/letsencrypt \
-v /path/to/keystore:/keystore \
viyh/autocert \
autocert-update-java-keystore \
--domain test.uberboxen.net \
--alias cert_alias \
--passphrase changeit
--domain (required) - The domain of the key/cert to add/update in the keystore.
--alias (optional) - The alias of the key/cert in the keystore. By default, this
will be the domain name.
--passphrase (optional) - The keystore password. If this is not default ("changeit")
then this will need to be specified.
Content type
Image
Digest
Size
82.6 MB
Last updated
about 10 years ago
docker pull viyh/autocert