Automation of Cpanel in node and python3, enabling automated issuing of wildcard certificates from letsencrypt.
This tool expects to be installed to /opt/cpanel-dns
- Create a file called
secrets.json
containing:
{
"cpanelHost": "http://cpanel.example.com",
"cpanelDomain": "example.com",
"cpanelUsername": "username",
"cpanelPassword": "password"
}
- Configure nginx as required.
- Run `CERT_EMAIL=myemail@example.com CERT_DOMAIN=example.com ./issue_cert.sh
Call CERT_EMAIL=myemail@example.com ./renew_cert.sh
.