Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gkarugi/efd6e7c6c95eee3f9836b3b3108b4a19 to your computer and use it in GitHub Desktop.
Save gkarugi/efd6e7c6c95eee3f9836b3b3108b4a19 to your computer and use it in GitHub Desktop.
works on ubuntu (or a linux distro)
wget https://dl.eff.org/certbot-auto
chmod a+x ./certbot-auto
sudo ./certbot-auto
//wildcard ssl
sudo ./certbot-auto certonly \
--server https://acme-v02.api.letsencrypt.org/directory \
--manual --preferred-challenges dns \
-d *.example.com
//non wildcard ssl
sudo ./certbot-auto certonly \
--server https://acme-v02.api.letsencrypt.org/directory \
--manual --preferred-challenges dns \
-d example.com
sudo openssl pkcs12 \
-inkey /etc/letsencrypt/live/example.com/privkey.pem \
-in /etc/letsencrypt/live/example.com/cert.pem \
-export -out ./example-ase.pfx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment