<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Tls on Mini Fish</title>
    <link>https://blog.minifish.org/tags/tls/</link>
    <description>Recent content in Tls on Mini Fish</description>
    <image>
      <title>Mini Fish</title>
      <url>https://blog.minifish.org/android-chrome-512x512.png</url>
      <link>https://blog.minifish.org/android-chrome-512x512.png</link>
    </image>
    <generator>Hugo -- 0.154.5</generator>
    <language>en-US</language>
    <copyright>Mini Fish 2014-present. Licensed under CC-BY-NC</copyright>
    <lastBuildDate>Mon, 22 May 2023 21:45:00 -0700</lastBuildDate>
    <atom:link href="https://blog.minifish.org/tags/tls/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to Use the HTTP API in TiDB with TLS Enabled</title>
      <link>https://blog.minifish.org/posts/how-to-use-the-http-api-in-tidb-with-tls-enabled/</link>
      <pubDate>Mon, 22 May 2023 21:45:00 -0700</pubDate>
      <guid>https://blog.minifish.org/posts/how-to-use-the-http-api-in-tidb-with-tls-enabled/</guid>
      <description>&lt;h2 id=&#34;background&#34;&gt;Background&lt;/h2&gt;
&lt;p&gt;Many customers have TLS enabled, which is different from the lab environment.&lt;/p&gt;
&lt;h2 id=&#34;curl&#34;&gt;Curl&lt;/h2&gt;
&lt;p&gt;Curl requires a specified CA certificate, otherwise it will report an error.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl --cacert ca.crt https://127.0.0.1:10080/status
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;wget&#34;&gt;Wget&lt;/h2&gt;
&lt;p&gt;Many containers do not have curl, so wget is used instead. Wget is better as it does not require a CA certificate.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;wget --no-check-certificate http://127.0.0.1:10080/status
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
      <content:encoded><![CDATA[<h2 id="background">Background</h2>
<p>Many customers have TLS enabled, which is different from the lab environment.</p>
<h2 id="curl">Curl</h2>
<p>Curl requires a specified CA certificate, otherwise it will report an error.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>curl --cacert ca.crt https://127.0.0.1:10080/status
</span></span></code></pre></div><h2 id="wget">Wget</h2>
<p>Many containers do not have curl, so wget is used instead. Wget is better as it does not require a CA certificate.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>wget --no-check-certificate http://127.0.0.1:10080/status
</span></span></code></pre></div>]]></content:encoded>
    </item>
  </channel>
</rss>
