Created
October 4, 2020 18:31
-
-
Save zaskem/583fce3c352420bfaf26b74802398ff7 to your computer and use it in GitHub Desktop.
Basic Certbot bash automation script to bolt together key commands in manually-requesting a certificate, as outlined in https://mzonline.com/blog/2020-10/improving-manual-certbot-domain-validation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
certbot certonly --manual --manual-public-ip-logging-ok -d superdomain.net -d www.superdomain.net | |
read -n1 -r -s -p "Press any key to load certificate...`echo $'\r\n\r\n'`" | |
more /etc/letsencrypt/live/superdomain.net/cert.pem | |
read -n1 -r -s -p "Press any key to load private key...`echo $'\r\n\r\n'`" | |
more /etc/letsencrypt/live/superdomain.net/privkey.pem | |
read -n1 -r -s -p "Press any key to end certificate renewal process...`echo $'\r\n\r\n'`" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment