Skip to content

Latest commit

 

History

History
84 lines (51 loc) · 2.5 KB

README.md

File metadata and controls

84 lines (51 loc) · 2.5 KB

certbot

Docker

Get and renew Let's Encrypt Wildcard Certificates using Certbot.

runme.sh

Command Description
-get get LE's wildcard certficicates for --host
-single get a single --host certificate
-renew renew all existing expiring certificates
-revoke revoke --host certificate
-delete delete a certificate
-clean remove all certificates
-test use staging test server instead of production
-force force get/renew even when cert not expired
-verbose talkative mode
Option Description
--host FQN of the host to get the wildcard certificate
--email email for updates and expiry
--dns dns-01 validation service

-get

Get new wildcard certificates including root.

Example:

runme.sh -get --host example.com --email certs@example.com --dns google

example.com is the target to get Let's Encrypt certificate for. Both *.example.com and example.com certificates are ordered. certs@example.com is your email address required by LE.

-renew

Renews all certificates that are expiring.

-test

Optional flag for getting certificates from staging server instead of production.

-revoke

Revoke a certificate.

-clean

Removes the letsencrypt directory. Use it with caution after test runs only.

-force

Forces renewal or getting the certificate even when it is not expired.

-verbose

Turn on more info output of the progress. Use this for debugging.

--dns

Domain validation services. Currently supporting ony google and digitalocean.

--host

Full qualify domain name of the host you want to get certificate for. No need to specify the *.

--email

Email is required for expiration notifications.


Usage Instruction

Get Let's Encrypt Wildcard Certificate

docker run --rm -t -v <local-dir>:/data aquaron/certbot \
    --email <email> --host <fqn> --dns <dns-01> -[get|revoke|renew] [-test]