Automate obtaining Let's Encrypt certificates, using Certbot DNS-01 challenge validation for domains DNS hosted on NameSilo.
Inspired by namesilo-letsencrypt
Make sure you have installed Go, then
git clone https://github.com/countstarlight/namesilo-letsencrypt-go.git
cd namesilo-letsencrypt-go
make release
Add your NameSilo API key
to the top of the cert_example.sh
file and set your email and domains:
# Get your API Key from: https://www.namesilo.com/account_api.php
export NAMESILO_API='your namesilo api' && \
certbot certonly --manual --email youremail@example.com \
--agree-tos --manual-public-ip-logging-ok \
--preferred-challenges=dns \
--manual-auth-hook /path/to/auth-release \
--manual-cleanup-hook /path/to/clean-release \
-d *.example.com -d example.com
then
sudo ./cert_example.sh
Please note that NameSilo DNS propagation takes up to 15 minutes, so the tools will wait 16 minutes before completing.
Copyright (c) 2019-present Codist