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.
$ 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
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
$ ./dehydrated -c -d example.com -t dns-01 -k 'hooks/transip/hook.sh'
This script has the following dependencies:
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.