nginx with certbot

nginx with certbot

# Install certbot
 doas apt install certbot python3-certbot-nginx
 doas certbot --nginx -d qiuzhanghua.cn
# Saving debug log to /var/log/letsencrypt/letsencrypt.log
# Requesting a certificate for qiuzhanghua.cn

# Successfully received certificate.
# Certificate is saved at: /etc/letsencrypt/live/qiuzhanghua.cn/fullchain.pem
# Key is saved at:         /etc/letsencrypt/live/qiuzhanghua.cn/privkey.pem
# This certificate expires on 2025-07-08.
# These files will be updated when the certificate renews.
# Certbot has set up a scheduled task to automatically renew this certificate in the background.

# Deploying certificate
# Successfully deployed certificate for qiuzhanghua.cn to /etc/nginx/sites-enabled/default
# Congratulations! You have successfully enabled HTTPS on https://qiuzhanghua.cn

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# 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
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -