PageSourceSearch

https://www.hestudio.net/assets/set-ftp-ssl-on-btpanel.html-r6uStpTR.js

js hestudio.net collected 2026-09-24 10:37:08 UTC 5,088 bytes, 6 lines download raw bytes

1import{_ as e,c as n,f as i,o as a}from"./app-D7CCjthX.js";const s={};function p(o,t){return a(),n("div",null,[...t[0]||(t[0]=[i(`<p>我们在宝塔面板刚装上 FTP 的时候,宝塔面板内使用的是它的自签名证书,在连接的时候就会报错。我们需要将自签名 SSL 换成我们自己的 SSL 证书。</p><figure><img src="https://img.hestudio.net/img/2022/12/22/63a3fb74052dc.png" alt="证书不匹配" tabindex="0" loading="lazy"><figcaption>证书不匹配</figcaption></figure><p>我们需要准备 PEM 格式的证书文件。新建一个文档,将私钥放在上面,另起一行,在底下粘贴公钥部分。</p><p>在服务器上执行</p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code class="language-bash"><span class="line"><span class="token comment"># 备份文件</span></span>
2<span class="line"><span class="token function">cp</span> /etc/ssl/private/pure-ftpd.pem /etc/ssl/private/pure-ftpd.pem.bak</span>
3<span class="line"></span>
4<span class="line"><span class="token comment"># 编辑证书文件</span></span>
5<span class="line"><span class="token function">vim</span> /etc/ssl/private/pure-ftpd.pem</span>
6<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>将刚才连接好的证书粘贴在上面。<code>:wq</code>保存文件。登录宝塔面板,转到 软件商店 -&gt; Pure-Ftpd 设置 -&gt; 重启。</p><figure><img src="https://img.hestudio.net/img/2022/12/22/63a4016c09911.png" alt="操作步骤" tabindex="0" loading="lazy"><figcaption>操作步骤</figcaption></figure><p>再次登录 FileZilla , 尝试连接后,报错消失了。</p><figure><img src="https://img.hestudio.net/img/2022/12/22/63a40228a6826.png" alt="" tabindex="0" loading="lazy"><figcaption></figcaption></figure>`,9)])])}const r=e(s,[["render",p]]),c=JSON.parse('{"path":"/posts/set-ftp-ssl-on-btpanel.html","title":"宝塔面板设置FTP的SSL","lang":"zh-CN","frontmatter":{"title":"宝塔面板设置FTP的SSL","tag":["Linux"],"category":["Linux"],"description":"我们在宝塔面板刚装上 FTP 的时候,宝塔面板内使用的是它的自签名证书,在连接的时候就会报错。我们需要将自签名 SSL 换成我们自己的 SSL 证书。 证书不匹配证书不匹配 我们需要准备 PEM 格式的证书文件。新建一个文档,将私钥放在上面,另起一行,在底下粘贴公钥部分。","head":[["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"宝塔面板设置FTP的SSL\\",\\"image\\":[\\"https://img.hestudio.net/img/2022/12/22/63a3fb74052dc.png\\",\\"https://img.hestudio.net/img/2022/12/22/63a4016c09911.png\\",\\"https://img.hestudio.net/img/2022/12/22/63a40228a6826.png\\"],\\"dateModified\\":\\"2025-03-13T06:15:20.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"undefined\\",\\"url\\":\\"https://www.hestudio.net/about/\\",\\"email\\":\\"[email protected]\\"}]}"],["meta",{"property":"og:url","content":"https://www.hestudio.net/posts/set-ftp-ssl-on-btpanel.html"}],["meta",{"property":"og:site_name","content":"heStudio"}],["meta",{"property":"og:title","content":"宝塔面板设置FTP的SSL"}],["meta",{"property":"og:description","content":"我们在宝塔面板刚装上 FTP 的时候,宝塔面板内使用的是它的自签名证书,在连接的时候就会报错。我们需要将自签名 SSL 换成我们自己的 SSL 证书。 证书不匹配证书不匹配 我们需要准备 PEM 格式的证书文件。新建一个文档,将私钥放在上面,另起一行,在底下粘贴公钥部分。"}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:image","content":"https://img.hestudio.net/img/2022/12/22/63a3fb74052dc.png"}],["meta",{"property":"og:locale","content":"zh-CN"}
6],["meta",{"property":"og:updated_time","content":"2025-03-13T06:15:20.000Z"}],["meta",{"property":"article:tag","content":"Linux"}],["meta",{"property":"article:modified_time","content":"2025-03-13T06:15:20.000Z"}]]},"git":{"createdTime":1671694989000,"updatedTime":1741846520000},"readingTime":{"minutes":0.69,"words":207},"filePathRelative":"posts/set-ftp-ssl-on-btpanel.md","excerpt":"<p>我们在宝塔面板刚装上 FTP 的时候,宝塔面板内使用的是它的自签名证书,在连接的时候就会报错。我们需要将自签名 SSL 换成我们自己的 SSL 证书。</p>\\n<figure><img src=\\"https://img.hestudio.net/img/2022/12/22/63a3fb74052dc.png\\" alt=\\"证书不匹配\\" tabindex=\\"0\\" loading=\\"lazy\\"><figcaption>证书不匹配</figcaption></figure>\\n<p>我们需要准备 PEM 格式的证书文件。新建一个文档,将私钥放在上面,另起一行,在底下粘贴公钥部分。</p>\\n","autoDesc":true}');export{r as comp,c as data};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.