if you need to get SSL certificates without any interaction for nginx get this piece of code
certbot certonly --noninteractive --agree-tos --cert-name ${SITE_TLD} -d ${SITE_DOMAIN_ONE} -d ${SITE_DOMAIN_TWO} -m ${SSL_EMAIL}
certbot --nginx --noninteractive --agree-tos --cert-name domainname.com -d domainname.com -d www.domainname.com -m webmaster@domainname.com
to renew it automatically run crond -e
3 3 * * * /usr/bin/certbot renew --quiet
it will be checked everyday at 3:03 am, if it is time to renew it will do it for you
Comments
Post a Comment