1.git clone https://github.com/acmesh-official/acme.sh.git
2.
export Ali_Key="XXXXXXXXXXXXX"
export Ali_Secret="XXXXXXXXXXXXXX"
acme.sh --issue --dns dns_ali -d XXX.XX -d www.XXX.XX-d ipv6.XXX.XX
3.acme.sh --install-cert -d XXX.XX
--cert-file /etc/apache2/ssl/XXX.XX-cert.pem
--key-file /etc/apache2/ssl/XXX.XX-key.pem
--fullchain-file /etc/apache2/ssl/letsencrypt.pem
--reloadcmd "service apache2 force-reload"
3.
vim /etc/apache2/sites-available/unasdesktop-ssl.conf
vim /etc/apache2/sites-available/default-ssl.conf
修改上面文件的
SSLCertificateFile /etc/apache2/ssl/XXX.XX-cert.pem
SSLCertificateKeyFile /etc/apache2/ssl/XXX.XX-key.pem
SSLCertificateChainFile /etc/apache2/ssl/letsencrypt.pem
SSLCACertificatePath /etc/apache2/ssl/
SSLCACertificateFile /etc/apache2/ssl/letsencrypt.pem
4.
service apache2 reload
5.
crontab -l
acme.sh --upgrade --auto-upgrade