vufa / namesilo-letsencrypt-go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NameSilo Let's Encrypt

Automate obtaining Let's Encrypt certificates, using Certbot DNS-01 challenge validation for domains DNS hosted on NameSilo.

Inspired by namesilo-letsencrypt

Setup

Build from source

Make sure you have installed Go, then

git clone https://github.com/countstarlight/namesilo-letsencrypt-go.git
cd namesilo-letsencrypt-go
make release

Configuration

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.

License

MIT

Copyright (c) 2019-present Codist

About

License:MIT License


Languages

Language:Go 61.6%Language:Makefile 33.8%Language:Shell 4.6%