Use cloudxns DNS verification to quickly obtain lets-encrypt certificates

Use cloudxns DNS verification to quickly obtain lets-encrypt certificates

https://github.com/xdtianyu/scripts/tree/master/le-dns

The script is based on letsencrypt.sh and calls the cloudxns API to update the TXT record for authentication, so as to quickly obtain the lets-encrypt certificate. No root permissions are required, no website directory or DNS resolution is required

download
wget https://github.com/xdtianyu/scripts/raw/master/le-dns/le-cloudxns.sh
wget https://github.com/xdtianyu/scripts/raw/master/le-dns/cloudxns.conf
chmod +x le-cloudxns.sh

Configuration
cloudxns.conf file contents

API_KEY=”YOUR_API_KEY”
SECRET_KEY=”YOUR_SECRET_KEY”
DOMAIN="example.com"
CERT_DOMAINS=”example.com www.example.com im.example.com”
Change API_KEY and SECRET_KEY to your cloudxns api key, and change DOMAIN to your root domain name.
Modify CERT_DOMAINS to the domain name list you want to sign

run

./le-cloudxns.sh cloudxns.conf

The final generated file is in the certs directory of the current directory

Cron scheduled tasks

To automatically renew the certificate every two months, you can add service nginx reload at the end of the le-cloudxns.sh script.

      • /2 /etc/nginx/le-cloudxns.sh /etc/nginx/le-cloudxns.conf >> /var/log/le-cloudxns.log 2>&1

via: v2ex

<<:  Global Frag: $130/month/L5520/24GB memory/1TB hard drive/unlimited traffic/5 IPs/Los Angeles

>>:  Hostodo: $3/month/512MB memory/15GB space/1TB traffic/KVM/Los Angeles

Recommend

Shinjiru 2GB RAM Malaysia OpenVZ VPS Review

Details: Shinjiru: Provides anti-complaint, offsh...

DeepNet Solutions: $2/month/256MB RAM/10GB storage/250GB/KVM/Los Angeles

DEEPNET SOLUTIONS, founded in 2011, previously pr...