WILDCARD SSL INSTALLATION ON UBUNTU 22 using CERTBOT
sudo apt updatesudo apt install snapd
sudo snap install --classic certbotsudo ln -s /snap/bin/certbot /usr/bin/certbotsudo certbot --nginxsudo certbot renew --dry-run
wget https://github.com/joohoi/acme-dns-certbot-joohoi/raw/master/acme-dns-auth.pychmod +x acme-dns-auth.pywget https://github.com/possiblefix/irfankorai/raw/master/acme-dns-auth.pychmod +x acme-dns-auth.pynano acme-dns-auth.pysudo mv acme-dns-auth.py /etc/letsencrypt/sudo certbot certonly --manual --manual-auth-hook /etc/letsencrypt/acme-dns-auth.py --preferred-challenges dns --debug-challenges -d \*.site.com -d site.comsudo certbot certonly --manual --manual-auth-hook /etc/letsencrypt/acme-dns-auth.py --preferred-challenges dns --debug-challenges -d \*.pakwebstuff.com -d pakwebstuff.comcertbot revoke --cert-path /etc/letsencrypt/live/site.com/fullchain.pem --key-path /etc/letsencrypt/live/site.com/privkey.pem --reason keyCompromisecertbot revoke --cert-path /etc/letsencrypt/live/pakwebstuff.com/fullchain.pem --key-path /etc/letsencrypt/live/pakwebstuff.com/privkey.pem --reason keyCompromisesudo certbot delete --cert-name pakwebstuff.comrm -rf /etc/letsencrypt/live/pakwebstuff.comsudo certbot renewcrontab -e43 6 * * * certbot renew --post-hook "systemctl reload nginx"
certbot certonly —manual \ —preferred-challenges dns \ —email your@email.com \ —agree-tos \ —key-type rsa \ -d ‘*.site.com’ -d site.com or
sudo certbot certonly \ —dns-route53 \ —key-type rsa \ —agree-tos \ -d site.com \ -d ‘*.site.com’
Quick Links
Legal Stuff
