Skip to main content

Certbot plugin for Oxford Hydra DNS API

Project description

Certbot Hydra Plugin

A certbot Hydra plugin for use with the University of Oxford Hydra DNS system.

Enables the use of certbot to create a LetsEncrypt SSL certificate, which in turn can be used to automate SSL certificate renewal.

As the ownership validation mechanism uses DNS, no direct access is required to the website.

Hydra Tokens

This plugin uses the Hydra API, access by the token based authentication mechanism, described at https://blogs.it.ox.ac.uk/networks/2024/05/31/hydra-token-authentication/, with further detail documented at https://wiki.it.ox.ac.uk/networks/HydraTokens.

To create a token, navigate to https://www.networks.it.ox.ac.uk/itss/ipam/allocations and then search for the (sub)domain you want to create a token for.

The token should be restricted to only have access to the records it needs to modify.

Setup

To you use the plugin you should follow the instructions in the links above to generate a set of credentials then populate a config file (for example /etc/letsencrypt/dns-hydra.ini) with data in the following format:

[dns_hydra]
api-username = x/y 
api-password = zzzzzzzz

This file needs to be suitable secured as it contains credentials which can modify your dns and are also providing proof of ownership of the domain.

Usage

Once installs, run with command:

certbot certonly --authenticator dns-hydra --dns-hydra-config-file /etc/letsencrypt/dns-hydra.ini -d yourdomain.jordan.ox.ac.uk

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

certbot_dns_hydra-0.2.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

certbot_dns_hydra-0.2.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file certbot_dns_hydra-0.2.0.tar.gz.

File metadata

  • Download URL: certbot_dns_hydra-0.2.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for certbot_dns_hydra-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cce38bfe9b07ded2369406ea26b828083de011920def5e8151909e3e0703bb31
MD5 effb6a3277e8dab512214db9362279d1
BLAKE2b-256 05c670145dd2243e459fc6e27cf4cf5b87cf92b02d8d931aa413a256ccad26f7

See more details on using hashes here.

File details

Details for the file certbot_dns_hydra-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for certbot_dns_hydra-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5717ecffbc17972a916d89274552ae4760ee181133bdfbd207a8ea702ee90bd
MD5 f75ccd48c50fbdbd81f748bfd82c1867
BLAKE2b-256 13f6fa67381feda6a964eb2339af7c073c7de1d5dd29f38cb33df779bb210148

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page