Use cloudflare's API to apply for a Let's Encrypt pan-domain certificate

888u

Last update at :2024-03-03,Edit by888u

Now Let’s Encrypt has opened applications for pan-domain SSL certificates. To apply for a pan-domain SSL certificate, you must verify DNS resolution. You can apply by manually adding DNS records, or by using the API to automatically add DNS records. Here is a record of using cloudflare's API to apply for Let's Encrypt pan-domain. Domain certificate process.

Apply for a certificate

Get cloudflare's API

First obtain the TOKEN of the cloudflare account API. Log in to your cloudflare account, then view My Profile, click View API Key of Global API Key, enter the password, and save the KEY.

Install amce.sh

Installation only requires one command. The following commands can be executed on any Linux host without pointing the A record of the domain name to it.

apt-get install socat -y curl https://get.acme.sh | sh

Apply for a certificate

Note that there is a . in front of the acme directory name, so the acme directory cannot be seen by default. You can enter the acme directory through the following command.

cd.amce.sh

Set up cloudflare api.

export CF_Key="KEY just saved" export CF_Email="cloudflare's registered email address"

Then apply for a certificate.

acme.sh --issue --dns dns_cf -d *.yourdomain name.com -d yourdomainname.com

Now the certificate and private key can be viewed in the /root/.acme.sh/*.yourdomain name.com directory.

Recommended site searches: registered domain name, vps host, cloud host, Hong Kong vps host rental, expired registered domain name query, telecommunications server, free virtual space, domain name SSL certificate, cloud server rental, Hong Kong server recommendation,

Use cloudflare's API to apply for a Let's Encrypt pan-domain certificate

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码