Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

bemble/certbot-ovh-hooks

Repository files navigation

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 --manual-public-ip-logging-ok -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.

About

Hooks, in NodeJS, to handle manual certbot queries with domains registred at OVH.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published