Last active
March 19, 2018 12:38
-
-
Save niraj-shah/d1efce4a412493c6ee132a3db6ec1250 to your computer and use it in GitHub Desktop.
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
<IfModule mod_ssl.c> | |
<VirtualHost *:443> | |
Include conf/vhosts/domain.vhost | |
SSLCertificateFile /etc/letsencrypt/live/domain.com/fullchain.pem | |
SSLCertificateKeyFile /etc/letsencrypt/live/domain.com/privkey.pem | |
Include /etc/letsencrypt/options-ssl-apache.conf | |
</VirtualHost> | |
</IfModule> |
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
# download certbot-auto | |
wget https://dl.eff.org/certbot-auto | |
chmod a+x certbot-auto |
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
# create the wildcard certificate | |
sudo ./certbot-auto certonly --manual -d domain.com -d *.domain.com --server https://acme-v02.api.letsencrypt.org/directory |
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
# renew wildcard certificate for specific domains | |
sudo ./certbot-auto certonly --apache -n -d domain.com -d *.domain.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment