letsencrypt
Setting up a new site using the *.edavis.dev wildcard
root$ mkdir -p /var/www/html/NAME.edavis.dev/
root$ cat 001-default.conf > 001-dev-edavis-NAME.conf # inside /etc/apache/sites-available
root$ # update %SITE_HOST% and %SITE_PATH% in new config
root$ a2ensite 001-dev-edavis-NAME.conf
root$ systemctl reload apache2
Setting up a new site with LetsEncrypt
root$ mkdir -p /var/www/html/didwebtest.edavis.dev/
root$ cat 001-default.conf > 001-dev-edavis-didwebtest.conf
root$ # update %SITE_HOST% and %SITE_PATH% in new conf
root$ a2ensite 001-dev-edavis-webtest.conf
root$ systemctl reload apache2
root$ letsencrypt certonly --webroot -w /var/www/html/didwebtest.edavis.dev/ -d didwebtest.edavis.dev
root$ # uncomment SSL config in new conf
root$ systemctl reload apache2
Deleting a cert from LetsEncrypt
root$ a2dissite 001-dev-edavis-ejdalt1
root$ letsencrypt certificates
root$ letsencrypt delete --cert-name ejdalt1.edavis.dev # pull name from above
Created: 2024-01-26
Last Updated: 2024-08-21