sudo certbot renew --dry-run
Renewal configuration file /etc/letsencrypt/renewal/domainname.com.conf is broken.
The error was: expected /etc/letsencrypt/live/domainname.com/cert.pem to be a symlink
Skipping.
sudo rm -rf /etc/letsencrypt/{live,renewal,archive}/{domainname.com,domainname.com.conf}
sudo certbot certonly --webroot -w /var/www/domainname.com/public_html -d domainname.com -d www.domainname.com
sudo a2dissite domainname.conf
sudo systemctl reload apache2
sudo nano /etc/apache2/sites-available/domainname.conf
SSLCertificateFile /etc/letsencrypt/live/domainname.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domainname.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/domainname.com/chain.pem
sudo a2ensite domainname.com.conf
sudo systemctl reload apache2