<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Letsencrypt on Artem Yegorov</title>
    <link>https://yegorov.github.io/tags/letsencrypt/</link>
    <description>Recent content in Letsencrypt on Artem Yegorov</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Mon, 23 Nov 2026 12:00:00 +0300</lastBuildDate>
    <atom:link href="https://yegorov.github.io/tags/letsencrypt/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Obtaining a real SSL certificate for your localhost</title>
      <link>https://yegorov.github.io/posts/obtaining-real-ssl-certificate-for-your-localhost/</link>
      <pubDate>Mon, 23 Nov 2026 12:00:00 +0300</pubDate>
      <guid>https://yegorov.github.io/posts/obtaining-real-ssl-certificate-for-your-localhost/</guid>
      <description>&lt;p&gt;When developing web services, you may sometimes need to test how things work with a real domain. In most cases, you can add domains to the &lt;code&gt;/etc/hosts&lt;/code&gt; file; for example, it might look like this:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-txt&#34; data-lang=&#34;txt&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;127.0.0.1 site.localhost&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;127.0.0.1 admin.localhost&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;127.0.0.1 db.localhost&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You can also use one of the actual domains that has its DNS A-record set to 127.0.0.1, for example:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;http://lvh.me/&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;lvh.me&lt;/a&gt; - see &lt;a href=&#34;https://coderwall.com/p/-neplg/use-lvh-me-for-local-subdomain-testing&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;here&lt;/a&gt; for instructions on how to use it.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;http://localtest.me/&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;localtest.me&lt;/a&gt; - learn more &lt;a href=&#34;https://pekalicious.github.io/til/2019/01/07/02-lvhme.html&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;here&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;http://127.0.0.1.nip.io/&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;127.0.0.1.nip.io&lt;/a&gt; - a particularly useful service that also provides access to other IP addresses not routable on the public internet; find out more &lt;a href=&#34;https://nip.io/&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;here&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;But what if you need your service to use a secure connection on localhost - that is, to be accessible via HTTPS? One option is to use &lt;a href=&#34;https://yegorov.github.io/posts/how-generate-self-signed-ssl-certificate/&#34; &gt;self-signed certificates&lt;/a&gt; and add them to the system’s SSL/TLS certificate store (on Debian, for instance, you would place the certificate in the &lt;code&gt;/usr/local/share/ca-certificates/&lt;/code&gt; directory and update the system certificate store by running the command &lt;code&gt;sudo update-ca-certificates&lt;/code&gt;).&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
