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

Kuai Che Dao: $61/month/1GB memory/10GB space/unlimited traffic/1Gbps/KVM/HKT

Kuai Che Dao, which should be a Chinese merchant,...

PowerVPS: $2.75/month/512MB RAM/10GB SSD space/unlimited traffic/KVM/Netherlands

PowerVPS, a Russian hosting provider, mainly prov...

FireVPS: $3.99/month/1G memory/250GB space/2TB traffic/KVM/Canada

FireVPS, a newly established hosting provider, pr...

WorldStream: €9.99/month/Celeron G1620/2GB RAM/500GB storage/1TB data transfer

WorldStream is a Dutch hosting provider that has ...

NetworkSolutions Domain Name $0.5 Discount

NetworkSolutions domain name is $0.5 discount, th...

SakuraVM 2GB RAM 300Mbps Unlimited Traffic Taiwan Hinet KVM VPS Review

Details: SakuraVM: $40/month/1.5GB RAM/20GB SSD s...

SSH wall-breaking tool Bitvise Tunnelier detailed introduction

About Bitvise Tunnelier Official download address...

Dranzel: $10/month/1GB memory/25GB space/200GB bandwidth/KVM/India

Dranzel, owned by 2sync.co, was founded in 2014 a...

Alibaba Cloud: Free 1-year DV SSL certificate from Symantec

Alibaba Cloud is quite conscientious and provides...

budgetvm: 36% off VPS

BudgetVM is a sub-brand of Enzu, providing low-pr...

W3Space: $20/year/2 cores/1GB memory/15GB space/1TB traffic/1 IP/OpenVZ

W3Space is an American hosting company that provi...