<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>CA Certificate on zhi旅程</title>
    <link>https://www.zhienw.com/tags/ca-certificate/</link>
    <description>Recent content from zhi旅程</description>
    <generator>Hugo</generator>
    <language>zh-tw</language>
    
    <managingEditor>ray784523@zhienw.com (Zhi Chen)</managingEditor>
    <webMaster>ray784523@zhienw.com (Zhi Chen)</webMaster>
    
    <copyright>本部落格所有文章除特別聲明外，均採用 BY-NC-SA 授權協議。轉載請註明出處！</copyright>
    
    <lastBuildDate>Sun, 06 Apr 2025 20:01:11 +0800</lastBuildDate>
    
    
    <atom:link href="https://www.zhienw.com/tags/ca-certificate/index.xml" rel="self" type="application/rss&#43;xml" />
    

    
    

    <item>
      <title>ESXI憑證安裝</title>
      <link>https://www.zhienw.com/post/esxi_certificate/</link>
      <pubDate>Mon, 06 Apr 2026 16:58:52 &#43;0800</pubDate>
      <author>ray784523@zhienw.com (Zhi Chen)</author>
      <guid>https://www.zhienw.com/post/esxi_certificate/</guid>
      <description>
        <![CDATA[<h1>ESXI憑證安裝</h1><p>作者：Zhi Chen（ray784523@zhienw.com）</p>
        
          <h2 id="建立憑證">
<a class="header-anchor" href="#%e5%bb%ba%e7%ab%8b%e6%86%91%e8%ad%89"></a>
建立憑證
</h2><p>使用certbot 簽一個憑證</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">sudo certbot certonly <span class="se">\
</span></span></span><span class="line"><span class="cl">  --dns-cloudflare <span class="se">\
</span></span></span><span class="line"><span class="cl">  --dns-cloudflare-credentials /root/.secrets/cloudflare.ini <span class="se">\
</span></span></span><span class="line"><span class="cl">  -d esxi.example.com <span class="se">\
</span></span></span><span class="line"><span class="cl">  --key-type rsa <span class="se">\
</span></span></span><span class="line"><span class="cl">  --force-renewal
</span></span></code></pre></div><blockquote>
<p>ertbot 2.0 之后<strong>預設已經改為產生 ECDSA (ECC) 憑證</strong>。然而 <strong>esxi使用的是rsa</strong> ,所以產生指令時要加要加 <strong>&ndash;key-type rsa</strong></p>
        
        <hr><p>本文2026-04-06首發於<a href='https://www.zhienw.com/'>zhi旅程</a>，最後修改於2025-04-06</p>]]>
      </description>
      
        <category>CA Certificate</category>
      
    </item>
    
    

    <item>
      <title>自簽憑證服務器架設( 使用Cloudflare驗證 )</title>
      <link>https://www.zhienw.com/post/signerserver/</link>
      <pubDate>Mon, 06 Apr 2026 01:05:52 &#43;0800</pubDate>
      <author>ray784523@zhienw.com (Zhi Chen)</author>
      <guid>https://www.zhienw.com/post/signerserver/</guid>
      <description>
        <![CDATA[<h1>自簽憑證服務器架設( 使用Cloudflare驗證 )</h1><p>作者：Zhi Chen（ray784523@zhienw.com）</p>
        
          <h2 id="架構圖">
<a class="header-anchor" href="#%e6%9e%b6%e6%a7%8b%e5%9c%96"></a>
架構圖
</h2><pre class="mermaid">
  sequenceDiagram
    participant Ubuntu as 💻 Ubuntu 本機<br>(Certbot)
    participant LE as 🛡️ Let's Encrypt<br>(憑證機構)
    participant CF as ☁️ Cloudflare<br>(DNS 伺服器)

    Ubuntu->>LE: 1️⃣ 發起憑證申請 (example.com)
    LE-->>Ubuntu: 2️⃣ 要求 DNS-01 驗證<br>(給予 _acme-challenge TXT 隨機碼)
    
    rect rgb(251, 255, 3)
    Note over Ubuntu,CF: 自動化 DNS 驗證階段
    Ubuntu->>CF: 3️⃣ 透過 API 新增 TXT 紀錄
    Ubuntu->>LE: 4️⃣ 通知驗證：我設定好了，請查驗
    LE->>CF: 5️⃣ 查詢網域的 TXT 紀錄
    CF-->>LE: 回傳 TXT 紀錄內容
    end

    LE-->>Ubuntu: 6️⃣ 核對無誤，驗證通過！<br>正式核發 SSL/TLS 憑證
    
    Ubuntu->>CF: 7️⃣ 透過 API 刪除 TXT 紀錄 (自動清理)
    Note over Ubuntu: 8️⃣ 憑證存檔於本機<br>/etc/letsencrypt/live/
</pre><h2 id="安裝-certbot">
<a class="header-anchor" href="#%e5%ae%89%e8%a3%9d-certbot"></a>
安裝 certbot
</h2><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">sudo apt update
</span></span><span class="line"><span class="cl">sudo apt install certbot python3-certbot-dns-cloudflare -y
</span></span></code></pre></div><p><img src="/images/SignerServer/1.webp" alt="image"></p>
        
        <hr><p>本文2026-04-06首發於<a href='https://www.zhienw.com/'>zhi旅程</a>，最後修改於2025-04-06</p>]]>
      </description>
      
        <category>CA Certificate</category>
      
    </item>
    
  </channel>
</rss>
