Skip to content

Instantly share code, notes, and snippets.

@niraj-shah
Last active March 19, 2018 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niraj-shah/d1efce4a412493c6ee132a3db6ec1250 to your computer and use it in GitHub Desktop.
Save niraj-shah/d1efce4a412493c6ee132a3db6ec1250 to your computer and use it in GitHub Desktop.
<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>
# download certbot-auto
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
# create the wildcard certificate
sudo ./certbot-auto certonly --manual -d domain.com -d *.domain.com --server https://acme-v02.api.letsencrypt.org/directory
# 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