中国网
设置自动续期 :Let🎊’s Encrypt证书有效期为90天
免费证书实操:以Let’s Encrypt为例(适用于Linux服务器) 以下步骤使用Certbot工具一键申请并部署,通用于Apache和Nginx环境: 安装Certbot :通过官方源或Snap安装Certbot,例如Ubuntu使用 sudo apt install certbot python3-certbot-nginx (Nginx)或对应Apache插件
验证效果 :访问 https://你的域名
这能强制浏览器始终通过HTTPS访问站点,并防范中间人攻击
配置示例: add_header Strict-Transport-Security "max-age=63072000; includeSubDom🌟ains; preload" always; ssl_protocols TLSv1