Skip to content

VeDicium/dehydrated-transip-dns01-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TransIP (dns-01) hook for dehydrated

This is a hook for the Let's Encrypt ACME client dehydrated that allows you to use TransIP's API DNS records to respond to dns-01 challenges. Requires Golang (or a built executable, see below) and TransIP credentials.

Installation

$ cd ~
$ git clone https://github.com/lukas2511/dehydrated
$ cd dehydrated
$ mkdir hooks
$ git clone https://github.com/VeDicium/dehydrated-transip-dns01-go.git hooks/transip

Configuration

You'll need to create an TransIP API keypair, which can be done here. The key given has to be saved somewhere on your server, like ~/dehydrated/hooks/transip/awesome-key-pair.key. We've to set them to the hook.sh (copy hook.example.sh to hook.sh), like this:

$ TRANSIP_ACCOUNT_NAME='transip-account-name'
$ TRANSIP_KEY_PATH='/full/path/to/awesome-key-pair.key'

You can verify if the credentials work like this:

$ bash ./hook.sh test

This will get all products of your account, just for testing

Usage

$ ./dehydrated -c -d example.com -t dns-01 -k 'hooks/transip/hook.sh'

Dependencies

This script has the following dependencies:

Builds

No official builds are supported as of now, but Golang makes it easy to compile an executable for your server / PC / whatever like this:

$ env GOOS=target-OS GOARCH=target-architecture go build -o ./builds/[target-OS].[target-architecture] main.go

For example, for Linux amd64 (most servers):

$ env GOOS=linux GOARCH=amd64 go build -o ./builds/linux.amd64 main.go

I've added this built, because it's probably most used, in the builds folder already.

Click here for some details information

About

DNS-01 validator hook for the TransIP API using Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published