安装网页 :https://certbot.eff.org/lets-encrypt/centosrhel7-nginx
执行命令
```sudo certbot certonly -d "*.coinrua.com" -d coinrua.com --server https://acme-v02.api.letsencrypt.org/directory --manual --preferred-challenges dns```
执行过程中 : 其中需要配置域名指向 TXT 2条记录
测试是否生效 dig _acme-challenge.xx.com txt
nginx 配置:
listen 443 ssl;
server_name xx.com www.xx.com;
#charset koi8-r;
#access_log logs/host.access.log main;
ssl_certificate /etc/letsencrypt/live/xx.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/xx.com/privkey.pem;
http to https
server {
listen 80;
server_name www.coinrua.com;
return 301 https://$server_name$request_uri;
}