1.1.0 • Published 8 years ago
certbot-ovh-hooks v1.1.0
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-hooksUpdate
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/.envConfigure
Simply run the following command:
coh-configureOr 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-aboutQuery a certificate
certbot certonly --manual --preferred-challenges=dns --manual-auth-hook coh-auth --manual-cleanup-hook coh-cleanup -d example.com -d www.example.comRenew certificates
If you have certificates queried without hooks, you must re-query these certificate to be able to renew them.
Standard
certbot renew --quietWhen 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-domainNote: this will not call certbot automatically, it just allows you to add/update A or AAAA records quickly.