Last update at :2024-06-24,Edit by888u
Currently, Let\\'s Encrypt already supports free application for pan-domain SSL certificates. In the previous article, Snail has used scripts provided by enthusiastic netizens and cooperated with DNSPOD API to quickly apply for Let\\'s Encrypt pan-domain names. Certificate (refer to: Let\\'s Encrypt pan-domain SSL certificate application and DNSPOD API to quickly obtain). It is indeed faster to apply through the DNS API, and this script supports most third-party DNS.
To facilitate the use of different third-party DNS users, Snail has previously provided the DNSPOD API to apply for pan-domain name resolution, and will also take the time to compile articles on regular third-party DNS API application certificates later. In this article, we will sort out the Alibaba Cloud DNS API application for Let\\’s Encrypt pan-domain name SSL certificate.
First, install the necessary software packages
Running the script directly will prompt an error message such as "It is recommended to install socat first". You need to install the necessary software packages in advance. Here is the article introduction with reference to \\"https://www.cmsky.com/lets-encrypt-wildcard-ssl/\\".
1. Debian/Ubuntu
apt-get update && apt-get install curl -y && apt-get install cron -y && apt-get install socat -y
2. CentOS
yum update && yum install curl -y && yum install cron -y && yum install socat -y
Second, install acme.sh
curl https://get.acme.sh | sh
Third, apply for Alibaba Cloud Cloud Analysis API
Application address: https://ak-console.aliyun.com/#/accesskey
After the application is completed, we need to copy the Access Key ID and Access Key Secret, which will be used later.
export Ali_Key=\\"corresponds to Access Key ID\\"export Ali_Secret=\\"corresponds to Access Key Secret\\"
First edit the corresponding information locally, and then paste it directly into SSH and press Enter to execute.
Fourth, quickly issue a pan-domain SSL certificate
~/.acme.sh/acme.sh –issue -d laobuluo.com -d *.laobuluo.com –dns dns_ali
Before executing the script, we need to make sure that the current domain name has been resolved and Alibaba Cloud is used for resolution.
Wait for the automatic issuance to be completed, and then you can find the certificate at the corresponding domain name under "/root/.acme.sh/\\". According to the documentation provided by the script, you need to copy the certificate to the corresponding location and then follow it to the website.
In summary, the method for applying for a pan-analytic certificate for Alibaba Cloud's DNS API is actually the same as DNSPOD, except that there are a few differences when applying for the API and obtaining the certificate.
Recommended site search: anti-complaint server, cloud server rental, overseas domain name registration, the cheapest dual-line space domain name transfer, corporate email, virtual host linux, com domain name, overseas virtual host space, online server website,
p>
发表评论