<?xml version='1.0' encoding='utf-8' ?>

<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>Kevin Reid&apos;s blog</title>
  <link>https://kpreid.dreamwidth.org/</link>
  <description>Kevin Reid&apos;s blog - Dreamwidth Studios</description>
  <lastBuildDate>Thu, 28 Jun 2018 17:43:13 GMT</lastBuildDate>
  <generator>LiveJournal / Dreamwidth Studios</generator>
  <lj:journal>kpreid</lj:journal>
  <lj:journaltype>personal</lj:journaltype>
  <image>
    <url>https://v2.dreamwidth.org/12362995/3165654</url>
    <title>Kevin Reid&apos;s blog</title>
    <link>https://kpreid.dreamwidth.org/</link>
    <width>100</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>https://kpreid.dreamwidth.org/53011.html</guid>
  <pubDate>Thu, 28 Jun 2018 17:43:13 GMT</pubDate>
  <title>HTTPS, finally</title>
  <link>https://kpreid.dreamwidth.org/53011.html</link>
  <description>&lt;p&gt;In further news of updating my personal web presence, I have finally set up HTTPS for &lt;a href=&quot;https://switchb.org/kpreid/&quot;&gt;switchb.org&lt;/a&gt;. As I write this I&apos;m working on updating all the links to it that I control.

&lt;p&gt;The thing I found underdocumented in Let&apos;s Encrypt/Certbot is: if you want to (or must) manually edit the HTTP configuration, what should the edits be? What I concluded was:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;VirtualHost *:443&amp;gt;
  ServerName &lt;var&gt;YOUR DOMAIN NAME&lt;/var&gt;
  Include /etc/letsencrypt/options-ssl-apache.conf
  SSLCertificateFile /etc/letsencrypt/live/&lt;var&gt;YOUR DOMAIN OR CERT NAME&lt;/var&gt;/cert.pem
  SSLCertificateKeyFile /etc/letsencrypt/live/&lt;var&gt;YOUR DOMAIN OR CERT NAME&lt;/var&gt;/privkey.pem
  SSLCertificateChainFile /etc/letsencrypt/live/&lt;var&gt;YOUR DOMAIN OR CERT NAME&lt;/var&gt;/chain.pem

  &lt;var&gt;...rest of configuration for this virtual host...&lt;/var&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Notes:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;/etc/letsencrypt/options-ssl-apache.conf&lt;/code&gt; (which of course may be in a different location depending on your OS and package manager) contains the basic configuration to enable SSL (&lt;code&gt;SSLEngine on&lt;/code&gt;) and certbot-recommended cipher options.
&lt;li&gt;You have to have a separate VirtualHost entry for *:443 and *:80; there&apos;s no way to copy the common configuration as far as I heard.
&lt;li&gt;By &quot;&lt;var&gt;CERT NAME&lt;/var&gt;&quot; I mean the name assigned to a multi-domain-name certificate if you have requested one. You can find out the certificate names with the command &lt;kbd&gt;certbot certificates&lt;/kbd&gt;. For a single domain it will be identical to the domain name.
&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=kpreid&amp;ditemid=53011&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://kpreid.dreamwidth.org/53011.html</comments>
  <category>web</category>
  <category>apache</category>
  <category>security</category>
  <category>web site</category>
  <category>meta</category>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
</channel>
</rss>
