CentOS 系统 Nginx 环境
Cd/usr/local/src
wget Https://dl.eff.org/certbot-auto
chmod a+x Certbot-auto
./certbot-auto--nginx (Auto)
The following content appears to indicate success:
IMPORTANT NOTES:
- congratulations! Your certificate and chain has been saved at:
/etc/letsencrypt/live/c.pensukeji.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/c.pensukeji.com/privkey.pem
Your cert would expire on 2018-10-16. To obtain a new or tweaked
Version of this certificate in the future, simply run Certbot-auto
Again with the "certonly" option. To non-interactively renew All
of your certificates, run "Certbot-auto Renew"
- Your account credentials has been saved in Your Certbot
Configuration directory At/etc/letsencrypt. You should make a
Secure backup of this folder now. This configuration directory would
Also contain certificates and private keys obtained by Certbot so
Making regular backups of this folder is ideal.
If you like Certbot, please consider supporting we work by:
Donating to Isrg/let ' s encrypt:https://letsencrypt.org/donate
Donating to Eff:https://eff.org/donate-le
./certbot-auto Renew--dry-run (test auto-renew)
./certbot-auto Renew (Perform auto-renew)
Scheduled Tasks
To automate, we set scheduled tasks to check for updates periodically
Edit/etc/crontab Add a line rule
**12** Root./usr/local/src/certbot-auto Renew
Detailed procedures, manual process and various versions of the installation method can be viewed on the following website
Certbot Website: https://certbot.eff.org/
Use Certbot to free HTTPS protocol for website