certbot-ovh-hooks
Hooks, in NodeJS, to handle manual certbot queries with domains registred at OVH.
It requires Node 8+.
Install
npm i -g certbot-ovh-hooks
Update
cp -p `npm root -g`/certbot-ovh-hooks/.env /tmp/coh_env_bu && \ npm i -g certbot-ovh-hooks && \ mv /tmp/coh_env_bu `npm root -g`/certbot-ovh-hooks/.env
Configure
Simply run the following command:
coh-configure
Or copy .env.sample
to .env
and edit manually.
Some checks
This will check if the configuration is done, your domains list and a reminder on request/renew certs etc.
coh-about
Query a certificate
certbot certonly --manual --preferred-challenges=dns --manual-auth-hook coh-auth --manual-cleanup-hook coh-cleanup -d example.com -d www.example.com
Renew certificates
If you have certificates queried without hooks, you must re-query these certificate to be able to renew them.
Standard
certbot renew --quiet
When using Nginx
certbot renew --quiet --deploy-hook "service nginx reload"
Other stuff
And domain
Because sometimes you just want to quickly add/update a domain that point on your server (A
or AAAA
DNS record):
coh-add-domain
Note: this will not call certbot
automatically, it just allows you to add/update A
or AAAA
records quickly.