<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ssl on 又LAG隨性筆記</title><link>https://www.lagagain.com/tags/ssl/</link><description>Recent content in ssl on 又LAG隨性筆記</description><generator>Hugo -- gohugo.io</generator><language>zh-TW</language><lastBuildDate>Tue, 24 Nov 2026 06:30:00 +0800</lastBuildDate><atom:link href="https://www.lagagain.com/tags/ssl/index.xml" rel="self" type="application/rss+xml"/><item><title>Ch10 - 幫大衛穿衣服，避免網路裸奔：APISIX設定HTTPS憑證的方式</title><link>https://www.lagagain.com/post/2025-it%E9%90%B5%E4%BA%BA%E8%B3%BD-apisix%E4%BD%BF%E7%94%A8%E7%B6%93%E9%A9%97%E5%88%86%E4%BA%AB15/</link><pubDate>Tue, 24 Nov 2026 06:30:00 +0800</pubDate><guid>https://www.lagagain.com/post/2025-it%E9%90%B5%E4%BA%BA%E8%B3%BD-apisix%E4%BD%BF%E7%94%A8%E7%B6%93%E9%A9%97%E5%88%86%E4%BA%AB15/</guid><description>&lt;blockquote>
&lt;p>本系列文章於2025年，已在&lt;a href="https://ithelp.ithome.com.tw/users/20112470/ironman/8791">iT邦幫忙：【與雲原生精靈共舞：APISIX使用者的兩年旅程】&lt;/a>發布過。&lt;/p>
&lt;/blockquote>
&lt;p>&lt;img src="https://i.ibb.co/NntgGqHg/201124701wtd-Xq-BZn-M.png" alt="圖片">&lt;/p>
&lt;p>在「新竹百貨公司」的例子，剛開幕時沒請到警衛，走的都是HTTP通道，這就像是裸體去逛街。&lt;/p>
&lt;p>&lt;img src="https://i.ibb.co/600vw5jN/20112470sd32-P66-Z7c.png" alt="圖片">
(圖片來源： &lt;a href="https://commons.wikimedia.org/wiki/File:%27David%27_by_Michelangelo_FI_Acca_JBU_009.jpg">https://commons.wikimedia.org/wiki/File:%27David%27_by_Michelangelo_FI_Acca_JBU_009.jpg&lt;/a>)&lt;/p>
&lt;p>在這個例子中，將會教你如何透過設定APISIX的HTTPs，讓大衛穿上衣服，不致於被人看光光。在此之前，需要先準備HTTPS(TLS)的憑證和金鑰。這裡簡化做法，使用&lt;code>mkcert&lt;/code>建立，若有興趣&lt;a href="https://www.lagagain.com/post/%E5%98%97%E8%A9%A6localhost%E7%9A%84https%E4%BC%BA%E6%9C%8D%E5%99%A8/">我以前也寫過更詳細的做法&lt;/a>。&lt;/p>
&lt;p>我的實驗環境是Ubuntu，可以直接透過&lt;code>apt&lt;/code>安裝：&lt;/p>
&lt;div class="highlight">&lt;pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4">&lt;code class="language-bash" data-lang="bash">apt install mkcert
&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;img src="https://i.ibb.co/LDPrp3S9/20112470g0-ZDSx-FNAV.png" alt="圖片">&lt;/p>
&lt;blockquote>
&lt;p>後續也會提供金鑰和憑證。如果你不會安裝使用&lt;code>mkcert&lt;/code>，也可以檢查直接使用我提供的金鑰和憑證。&lt;/p>
&lt;/blockquote>
&lt;p>然後可以直接執行：&lt;/p></description></item></channel></rss>