Last update at :2024-06-27,Edit by888u
Currently, among the free one-click panelless WEB environment installation scripts on the market, LNMP and Oneinstack should be used more frequently. They are relatively fast and easy to use both in terms of functionality and software version update and upgrade speed. Some time ago, we should all know that Let’s Encrypt has supported the application of pan-domain SSL certificates. Snail has also shared several applications for Let’s Encrypt domain name certificates in previous articles, in which the acme.sh script and a third-party DNS were used to apply.
In fact, last week, Snail saw that the latest version of Oneinstack has integrated acme.sh and implemented the application for pan-domain SSL certificates, so in this article, detailed integration and recording of Oneinstack script automatic Apply for a Let's Encrypt domain name certificate.
There are several related articles on applying for a pan-domain name certificate:
1. Let\\’s Encrypt pan-domain SSL certificate application and quick acquisition with DNSPOD API
2. Use Alibaba Cloud DNS API to quickly apply for Let\\’s Encrypt pan-domain SSL certificate
If we are using the Oneinstack script and want to apply for a pan-domain name certificate, you can refer to the test demonstration method below.
First, preparations
1. Backup, or backup
If we are not sure about the possible problems and there is important data in the server, we must make a backup so that we can save it in case of problems.
2. Domain name resolution and application for API
We need to resolve the domain name to the IP of the server and the DNS used by our domain name, and then apply for the API.
For example, when we apply for DNSPOD API, the ID and Token must be recorded and will be used later.
3. Upgrade Oneinstack version
/root/oneinstack/upgrade.sh oneinstack
Need to upgrade to the latest version.
Second, apply for a pan-domain name certificate
./vhost.sh
Add a website as normal, and then you need to add a domain name like *.laobuluo.com. Then the DNS option will be automatically called up, and then enter the parameters according to the DNS we applied for. Format:
export Key1=Value1; export Key2=Value1
cloudflare | cf | export CF_Key=keyexport [email protected] |
dnspod | dp | export DP_Id=idexport DP_Key=key |
cloudxns | cx | export CX_Key=keyexport CX_Secret=secret |
godaddy | gd | export GD_Key=gdkeyexport GD_Secret=gdsecret |
aws | aws | export AWS_ACCESS_KEY_ID=aws123export AWS_SECRET_ACCESS_KEY=awskey |
aliyun | ali | export Ali_Key=keyexport Ali_Secret=secret |
Linode | linode | export LINODE_API_KEY=linodekey |
freedns | freedns | export FREEDNS_User=userexport FREEDNS_Password=password |
he | he | export HE_Username=usernameexport HE_Password=password |
namesilo | namesilo | export Namesilo_Key=namesilokey |
digitalocean | dgon | export DO_API_KEY=dgonkey |
namecom | namecom | export Namecom_Username=usernameexport Namecom_Token=token |
Refer to this for specific input parameters.
Then the application will be successful automatically.
In summary, Oneinstack’s application for a Let’s Encrypt domain name certificate is also based on the functional principle of applying for the DNS API interface of the domain name, which is relatively simple.
Recommended site searches: domain name registration information query, Hong Kong IP, pw domain name, broadband IP address query, aaa server, icp registration center, php virtual space, high-defense US server, Hengtian host, domain name registration information query, p>
发表评论