Skip to content

getjohn/dehydrated-hook-digitalocean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Digital Ocean API hook for dehydrated ACME client

By John O'Rourke for GetConnect

This is a hook allowing dehydrated, the simple ACME/LetsEncrypt client, to create Digital Ocean DNS records for SSL Certificate verification.

Based on https://github.com/silkeh/pdns_api.sh

License: EUPL 1.2

DNS-based SSL certificate verification is useful for wildcard certificates.

How To Use

  1. Create a Digital Ocean token here: https://cloud.digitalocean.com/account/api/tokens

  2. set it as an environment variable:

export DIGITALOCEAN_TOKEN=xxxxxxxxxxxxxxxxx
  1. Run dehydrated (example)
dehydrated --cron --hook /path/to/this/script.sh --accept-terms --challenge dns --domain www.mywebsite.com

Wildcard domains

Create a text file in the format described here

eg.

servers.mydomain.com *.servers.mydomain.com

Then point dehydrated at that file:

dehydrated --cron --hook /path/to/this/script.sh --accept-terms --challenge dns --domains-txt /path/to/your/domains.txt

Testing

See dehydrated staging options

References

About

A hook script for the ACME SSL certificate client, dehydrated

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages