This is a super-simple Go script to request an SSL certificate via Let's Encrypt for a domain hosted at DNSimple.
DNSimple environment variables
export DNSIMPLE_EMAIL="dnsimple@example.com"
export DNSIMPLE_API_TOKEN="1234567890"
$ go run main.go \
--email example@example.com
domain1,domain2,domainN
Explicit DNSimple parameters
$ go run main.go \
--email example@example.com
--user "dnsimple@example.com" \
--api-key "1234567890" \
domain1,domain2,domainN
Example
$ go run main.go \
--email example@example.com
--user "dnsimple@example.com" \
--api-key "1234567890" \
simonecarletti.com,www.simonecarletti.com
- Load credentials from .data when the email matches