Skip to content

Instantly share code, notes, and snippets.

@niraj-shah niraj-shah/apache.conf
Last active Mar 19, 2018

Embed
What would you like to do?
<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
You can’t perform that action at this time.