参考这个
1、买域名,顶级域名和二级域名都和vps ip绑定,具体在域名服务商后台操作。
2、根据let's encrypt生成签名:
sudo certbot certonly -n --agree-tos -t -m "your_gmail" --standalone -d "your_domain_name"
ex:
[test@hst:~]$ sudo certbot certonly -n --agree-tos -t -m "your_gmail" --standalone -d "abc.xyz.top"
[sudo] password for test:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for abc.xyz.top
Waiting for verification...
Cleaning up challenges
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/abc.xyz.top/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/abc.xyz.top/privkey.pem
Your cert will expire on 2023-05-16. To obtain a new or tweaked
version of this certificate in the future, simply run certbot
again. To non-interactively renew *all* of your certificates, run
"certbot renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
sudo apt-get -y update && sudo apt-get -y install python3 git git clone https://github.com/aploium/zmirror-onekey.git --depth=1 cd zmirror-onekey sudo python3 deploy.py