<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Https - 标签 - 南冥鹏影</title><link>https://fupcode.com/blog/tags/https/</link><description>南冥鹏影</description><generator>Hugo 0.168.0 &amp; FixIt v1.0.0-beta.4</generator><language>zh-CN</language><lastBuildDate>Tue, 19 May 2026 03:04:28 +0800</lastBuildDate><atom:link href="https://fupcode.com/blog/tags/https/index.xml" rel="self" type="application/rss+xml"/><item><title>使用 Certbot --webroot 模式为 Nginx 配置 HTTPS</title><link>https://fupcode.com/blog/posts/devops/certbot-webroot/</link><pubDate>Tue, 19 May 2026 03:04:28 +0800</pubDate><guid>https://fupcode.com/blog/posts/devops/certbot-webroot/</guid><category domain="https://fupcode.com/blog/categories/%E5%BC%80%E5%8F%91%E8%BF%90%E7%BB%B4/">开发运维</category><description>&lt;p&gt;之前我一直使用：&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;certbot --nginx&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;来自动申请和配置 HTTPS 证书。&lt;/p&gt;&#10;&lt;p&gt;这种方法虽然方便，但在实际使用中，我遇到了比较严重的问题：&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;certbot 会自动修改 nginx 配置&lt;/li&gt;&#10;&lt;li&gt;certbot 会自动 reload/restart nginx，导致systemd 状态与 nginx 实际状态脱节，出现“游离 nginx”，然后第一个证书成功、后面失败&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;最终决定迁移到：&lt;/p&gt;</description></item></channel></rss>