当前位置:网站首页>[Qunhui] command line acme SH automatically apply for domain name certificate

[Qunhui] command line acme SH automatically apply for domain name certificate

2022-06-26 04:12:00 Dudu listing

Make a note of , If you forget , You can see it by yourself .

One :DNS API

I use Alibaba cloud

 

  Two :

download acme:GitHub - acmesh-official/acme.sh: A pure Unix shell script implementing ACME client protocol

There are installation commands in the address :

  I'm using ZeroSSL.com CA

Introduce the following :

 

  Because of me i It uses DNS API, So find Alibaba related API

 

 

If you use other API, Just look for other settings ;

 

  Ali settings are shown in the figure above . So we have all the basic knowledge points , Next, we start to configure ;

3、 ... and :

Qunhui command line login root

sudo -i

download acme, Like ; And extract the ;

  towards zerossl Registered account ;

  In the downloaded file , find

Alibaba cloud applied for the first step key Fill in the information dns_ali.sh

Run the generated certificate code :

./acme.sh --issue --dns dns_ali -d (*.example.com Own domain name ) -d (example.com Own domain name )

Certificate generated successfully ;

 

Digression :

I am running in Qunhui command line , Decompress the corresponding download , It can be uploaded to the shared file of Qunhui , Then unzip the settings dns_ali.sh; At the same time, the generated certificate , Send to the shared file through the command line , In this way, the certificate can be seen in the Qunhui visual interface ; The certificate is valid for 90 God ; Wait until it expires , Reset it ;

acme There are many ways to generate certificates , for example , You can also use Qunhui docker Medium acme apply , It's the same ; The main thing is to pay attention to DNS API Related to key Set up correctly , And authorize .

原网站

版权声明
本文为[Dudu listing]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202180538038831.html