drkno / cpanel-dns

Node, python and certbot clients for updating DNS controlled by cpanel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cpanel DNS

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

Creating Initial Certificates

  1. Create a file called secrets.json containing:
{
        "cpanelHost": "http://cpanel.example.com",
        "cpanelDomain": "example.com",
        "cpanelUsername": "username",
        "cpanelPassword": "password"
}
  1. Configure nginx as required.
  2. Run `CERT_EMAIL=myemail@example.com CERT_DOMAIN=example.com ./issue_cert.sh

Renewing Certificates

Call CERT_EMAIL=myemail@example.com ./renew_cert.sh.

About

Node, python and certbot clients for updating DNS controlled by cpanel


Languages

Language:Python 56.8%Language:JavaScript 36.6%Language:Shell 6.5%