SSL certbot auto - haiquang9994/dev_env GitHub Wiki
Install
sudo apt install certbot python3-certbot-nginx
Create a ssl
First set DNS to server for example.com
certbot --nginx -d example.com
Renew
crontab -e
0 */6 * * * sudo /usr/bin/certbot -q renew
Add domain to exists certificate
certbot certonly --nginx --cert-name hipingu.com -d hipingu.com,www.hipingu.com
Add wildcard
certbot certonly --manual --cert-name allsubdomain -d *.hipingu.com
Cert with TXT
certbot -d example.com --manual --preferred-challenges dns certonly