|
@@ -4,7 +4,7 @@
|
4
|
4
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
5
|
5
|
<head>
|
6
|
6
|
<title></title>
|
7
|
|
-<!-- 2015-03-07 Sat 13:17 -->
|
|
7
|
+<!-- 2015-03-07 Sat 21:24 -->
|
8
|
8
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
9
|
9
|
<meta name="generator" content="Org-mode" />
|
10
|
10
|
<meta name="author" content="Bob Mottram" />
|
|
@@ -194,15 +194,19 @@ for the JavaScript code in this tag.
|
194
|
194
|
</tr>
|
195
|
195
|
|
196
|
196
|
<tr>
|
197
|
|
-<td class="left"><a href="#unnumbered-7">Why use self-signed certificates?</a></td>
|
|
197
|
+<td class="left"><a href="#unnumbered-7">How do I renew a StartSSL certificate?</a></td>
|
198
|
198
|
</tr>
|
199
|
199
|
|
200
|
200
|
<tr>
|
201
|
|
-<td class="left"><a href="#unnumbered-8">Why not use the services of $company instead? They took the Seppuku pledge</a></td>
|
|
201
|
+<td class="left"><a href="#unnumbered-8">Why use self-signed certificates?</a></td>
|
202
|
202
|
</tr>
|
203
|
203
|
|
204
|
204
|
<tr>
|
205
|
|
-<td class="left"><a href="#unnumbered-9">Why does my email keep getting rejected as spam by Gmail/etc?</a></td>
|
|
205
|
+<td class="left"><a href="#unnumbered-9">Why not use the services of $company instead? They took the Seppuku pledge</a></td>
|
|
206
|
+</tr>
|
|
207
|
+
|
|
208
|
+<tr>
|
|
209
|
+<td class="left"><a href="#unnumbered-10">Why does my email keep getting rejected as spam by Gmail/etc?</a></td>
|
206
|
210
|
</tr>
|
207
|
211
|
</tbody>
|
208
|
212
|
</table>
|
|
@@ -555,33 +559,178 @@ Now visit your web site at <a href="https://mydomainname.com/">https://mydomainn
|
555
|
559
|
</div>
|
556
|
560
|
|
557
|
561
|
<div id="outline-container-unnumbered-7" class="outline-2">
|
558
|
|
-<h2 id="unnumbered-7">Why use self-signed certificates?</h2>
|
|
562
|
+<h2 id="unnumbered-7">How do I renew a StartSSL certificate?</h2>
|
559
|
563
|
<div class="outline-text-2" id="text-unnumbered-7">
|
560
|
564
|
<p>
|
561
|
|
-Almost everywhere on the web you will read that self-signed certificates are worthless. They bring up scary looking browser warnings and gurus will advise you not to use them. Self-signed certificates are quite useful though. What the scary warnings mean - and it would be good if they explained this more clearly - is that you have an encrypted connection established but there is <i>no certainty about who that connection is with</i>. The usual solution to this is to get a "real" SSL certificate from one of the certificate authorities, but it's far from clear that such authorities can be trusted. There have been various scandals involving such organisations, and it does not seem plausible to assume that they are somehow immune to the sort of treatment which <a href="http://en.wikipedia.org/wiki/Lavabit">Lavabit</a> received. So although most internet users have been trained to look for the lock icon as an indication that the connection is secured that belief may not always be well founded.
|
|
565
|
+The StartSSL certificates last for a year. You can check the expiry date of your current certificate/s by going to your site and if you're using Firefox then click on the <b>lock icon</b>, select "<b>more information</b>" then "<b>view certificate</b>".
|
562
|
566
|
</p>
|
563
|
567
|
|
564
|
568
|
<p>
|
565
|
|
-Security of web sites on the internet is still a somewhat unsolved problem, and what we have now is a less than ideal but <i>good enough to fool most of the people most of the time</i> kind of arrangement. Long term a better solution might be to have a number of certificate authorities in a number of different jurisdictions vote on whether a given certificate actually belongs to a given domain name. Experimental systems like this exist, but they're not widely used. Since the current certificate system has an enormous amount of inertia behind it change could be slow in arriving.
|
|
569
|
+Make sure that you have the StartSSL certificate which was created when you initially made an account. You did save it somewhere safe, didn't you? If it's not installed into your browser then in Firefox go to <b>Menu/Preferences/Advanced/View Certificates</b>. Make sure the "<b>Your Cerificates</b>" tab is selected and click "<b>import</b>", then import the StartSSL certificate.
|
566
|
570
|
</p>
|
567
|
571
|
|
568
|
572
|
<p>
|
569
|
|
-For now a self-signed certificate will probably in most cases protect your communications from "bulk" passive surveillance. Once you've got past the scary browser warning and accepted the certificate under most conditions (except when starting up the Tor browser) you should not repeatedly see that warning. If you do then someone may be trying to meddle with your connection to the server. You can also take a note of the fingerprint of the certificate and verify that if you are especially concerned. If the fingerprint remains the same then you're probably ok.
|
|
573
|
+Now go to <i>startssl.com</i> and click on the keys icon on the right hand side to log in. Select the <b>Control panel</b> then <b>Validations Wizard</b> and choose <b>Email address validation</b>. Enter your email address, then wait for the validation email to show up in your inbox. It will contain a code when you can then enter.
|
|
574
|
+</p>
|
|
575
|
+
|
|
576
|
+<p>
|
|
577
|
+Once your email is validated then go to <b>Validations Wizard</b> and choose <b>Domain name validation</b>. Enter your domain name and select <b>postmaster@yourdomainname</b>. After a while you should receive a validation email and you can then enter the code.
|
570
|
578
|
</p>
|
|
579
|
+
|
|
580
|
+<p>
|
|
581
|
+Log into the Freedombone and become the root user. Now we can generate a new certificate request as follows.
|
|
582
|
+</p>
|
|
583
|
+
|
|
584
|
+<div class="org-src-container">
|
|
585
|
+
|
|
586
|
+<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">HOSTNAME</span>=mydomainname.com
|
|
587
|
+openssl genrsa -out /etc/ssl/private/$<span class="org-variable-name">HOSTNAME</span>.new.key 2048
|
|
588
|
+chown root:ssl-cert /etc/ssl/private/$<span class="org-variable-name">HOSTNAME</span>.new.key
|
|
589
|
+chmod 440 /etc/ssl/private/$<span class="org-variable-name">HOSTNAME</span>.new.key
|
|
590
|
+mkdir /etc/ssl/requests
|
|
591
|
+</pre>
|
571
|
592
|
</div>
|
|
593
|
+
|
|
594
|
+<p>
|
|
595
|
+Now make a certificate request as follows. You should copy and paste the whole of this, not just line by line.
|
|
596
|
+</p>
|
|
597
|
+
|
|
598
|
+<div class="org-src-container">
|
|
599
|
+
|
|
600
|
+<pre class="src src-bash">openssl req -new -sha256 -key /etc/ssl/private/$<span class="org-variable-name">HOSTNAME</span>.new.key -out /etc/ssl/requests/$<span class="org-variable-name">HOSTNAME</span>.csr
|
|
601
|
+</pre>
|
572
|
602
|
</div>
|
|
603
|
+
|
|
604
|
+<p>
|
|
605
|
+For the email address it's a good idea to use postmaster@mydomainname.
|
|
606
|
+</p>
|
|
607
|
+
|
|
608
|
+<p>
|
|
609
|
+Use a random 20 character password, and keep a note of it. We'll remove this later.
|
|
610
|
+</p>
|
|
611
|
+
|
|
612
|
+<p>
|
|
613
|
+View the request with:
|
|
614
|
+</p>
|
|
615
|
+
|
|
616
|
+<div class="org-src-container">
|
|
617
|
+
|
|
618
|
+<pre class="src src-bash">cat /etc/ssl/requests/$<span class="org-variable-name">HOSTNAME</span>.csr
|
|
619
|
+</pre>
|
|
620
|
+</div>
|
|
621
|
+
|
|
622
|
+<p>
|
|
623
|
+On the StartSSL site select <b>Certificates Wizard</b> then <b>Web server SSL/TLS Certificate</b>. You can then click on "skip" and then copy and paste the encrypted request into the text entry box. You may now need to wait a few hours for a confirmation email indicating that the new certificate was created.
|
|
624
|
+</p>
|
|
625
|
+
|
|
626
|
+<p>
|
|
627
|
+Select <b>Tool Box</b> and then <b>Retrieve Certificate</b> from the list. Make sure to choose the one with the correct expiration date. Copy the text.
|
|
628
|
+</p>
|
|
629
|
+
|
|
630
|
+<div class="org-src-container">
|
|
631
|
+
|
|
632
|
+<pre class="src src-bash">mv /etc/ssl/private/$<span class="org-variable-name">HOSTNAME</span>.new.key /etc/ssl/private/$<span class="org-variable-name">HOSTNAME</span>.key
|
|
633
|
+editor /etc/ssl/certs/$<span class="org-variable-name">HOSTNAME</span>.crt
|
|
634
|
+</pre>
|
|
635
|
+</div>
|
|
636
|
+
|
|
637
|
+<p>
|
|
638
|
+Delete any existing contents then paste the public key from the StartSSL site. Save and exit. Then run the following commands:
|
|
639
|
+</p>
|
|
640
|
+
|
|
641
|
+<div class="org-src-container">
|
|
642
|
+
|
|
643
|
+<pre class="src src-bash">mkdir /etc/ssl/roots
|
|
644
|
+mkdir /etc/ssl/chains
|
|
645
|
+wget <span class="org-string">"http://www.startssl.com/certs/ca.pem"</span> --output-document=<span class="org-string">"/etc/ssl/roots/startssl-root.ca"</span>
|
|
646
|
+wget <span class="org-string">"http://www.startssl.com/certs/sub.class1.server.ca.pem"</span> --output-document=<span class="org-string">"/etc/ssl/chains/startssl-sub.class1.server.ca.pem"</span>
|
|
647
|
+wget <span class="org-string">"http://www.startssl.com/certs/sub.class2.server.ca.pem"</span> --output-document=<span class="org-string">"/etc/ssl/chains/startssl-sub.class2.server.ca.pem"</span>
|
|
648
|
+wget <span class="org-string">"http://www.startssl.com/certs/sub.class3.server.ca.pem"</span> --output-document=<span class="org-string">"/etc/ssl/chains/startssl-sub.class3.server.ca.pem"</span>
|
|
649
|
+ln -s <span class="org-string">"/etc/ssl/roots/startssl-root.ca"</span> <span class="org-string">"/etc/ssl/roots/$HOSTNAME-root.ca"</span>
|
|
650
|
+ln -s <span class="org-string">"/etc/ssl/chains/startssl-sub.class1.server.ca.pem"</span> <span class="org-string">"/etc/ssl/chains/$HOSTNAME.ca"</span>
|
|
651
|
+cp <span class="org-string">"/etc/ssl/certs/$HOSTNAME.crt"</span> <span class="org-string">"/etc/ssl/certs/$HOSTNAME.crt+chain+root"</span>
|
|
652
|
+<span class="org-builtin">test</span> -e <span class="org-string">"/etc/ssl/chains/$HOSTNAME.ca"</span> && cat <span class="org-string">"/etc/ssl/chains/$HOSTNAME.ca"</span> >> <span class="org-string">"/etc/ssl/certs/$HOSTNAME.crt+chain+root"</span>
|
|
653
|
+<span class="org-builtin">test</span> -e <span class="org-string">"/etc/ssl/roots/$HOSTNAME-root.ca"</span> && cat <span class="org-string">"/etc/ssl/roots/$HOSTNAME-root.ca"</span> >> <span class="org-string">"/etc/ssl/certs/$HOSTNAME.crt+chain+root"</span>
|
|
654
|
+</pre>
|
|
655
|
+</div>
|
|
656
|
+
|
|
657
|
+<p>
|
|
658
|
+Remove the certificate password, so if the server is rebooted then it won't wait indefinitely for a non-existant keyboard user to type in a password.
|
|
659
|
+</p>
|
|
660
|
+
|
|
661
|
+<div class="org-src-container">
|
|
662
|
+
|
|
663
|
+<pre class="src src-bash">openssl rsa -in /etc/ssl/private/$<span class="org-variable-name">HOSTNAME</span>.key -out /etc/ssl/private/$<span class="org-variable-name">HOSTNAME</span>.new.key
|
|
664
|
+cp /etc/ssl/private/$<span class="org-variable-name">HOSTNAME</span>.new.key /etc/ssl/private/$<span class="org-variable-name">HOSTNAME</span>.key
|
|
665
|
+shred -zu /etc/ssl/private/$<span class="org-variable-name">HOSTNAME</span>.new.key
|
|
666
|
+</pre>
|
|
667
|
+</div>
|
|
668
|
+
|
|
669
|
+<p>
|
|
670
|
+Create a bundled certificate which joins the certificate and chain file together.
|
|
671
|
+</p>
|
|
672
|
+
|
|
673
|
+<div class="org-src-container">
|
|
674
|
+
|
|
675
|
+<pre class="src src-bash">cat /etc/ssl/certs/$<span class="org-variable-name">HOSTNAME</span>.crt /etc/ssl/chains/startssl-sub.class1.server.ca.pem > /etc/ssl/certs/$<span class="org-variable-name">HOSTNAME</span>.bundle.crt
|
|
676
|
+</pre>
|
|
677
|
+</div>
|
|
678
|
+
|
|
679
|
+<p>
|
|
680
|
+And also add it to the overall bundle of certificates for the Freedombone. This will allow you to easily install the certificates onto other systems.
|
|
681
|
+</p>
|
|
682
|
+
|
|
683
|
+<div class="org-src-container">
|
|
684
|
+
|
|
685
|
+<pre class="src src-bash">cp /etc/ssl/certs/$<span class="org-variable-name">HOSTNAME</span>.bundle.crt /etc/ssl/mycerts
|
|
686
|
+cat /etc/ssl/mycerts/*.crt > /etc/ssl/freedombone-bundle.crt
|
|
687
|
+tar -czvf /etc/ssl/freedombone-certs.tar.gz /etc/ssl/mycerts/*.crt
|
|
688
|
+</pre>
|
|
689
|
+</div>
|
|
690
|
+
|
|
691
|
+<p>
|
|
692
|
+To avoid any possibility of the certificates being accidentally overwritten by self-signed ones at a later date you can create backups.
|
|
693
|
+</p>
|
|
694
|
+
|
|
695
|
+<div class="org-src-container">
|
|
696
|
+
|
|
697
|
+<pre class="src src-bash">cp /etc/ssl/certs/$<span class="org-variable-name">HOSTNAME</span>* /etc/ssl/backups/certs/
|
|
698
|
+cp /etc/ssl/private/$<span class="org-variable-name">HOSTNAME</span>* /etc/ssl/backups/private/
|
|
699
|
+chmod -R 400 /etc/ssl/backups/certs/*
|
|
700
|
+chmod -R 400 /etc/ssl/backups/private/*
|
|
701
|
+</pre>
|
|
702
|
+</div>
|
|
703
|
+</div>
|
|
704
|
+</div>
|
|
705
|
+
|
573
|
706
|
<div id="outline-container-unnumbered-8" class="outline-2">
|
574
|
|
-<h2 id="unnumbered-8">Why not use the services of $company instead? They took the Seppuku pledge</h2>
|
|
707
|
+<h2 id="unnumbered-8">Why use self-signed certificates?</h2>
|
575
|
708
|
<div class="outline-text-2" id="text-unnumbered-8">
|
576
|
709
|
<p>
|
577
|
|
-<a href="http://seppuku.cryptostorm.org/">That pledge</a> is utterly worthless. Years ago people trusted Google in the same sort of way, because they promised not be be evil and because a lot of the engineers working for them seemed like honest types who were "<i>on our side</i>". Post-<a href="https://en.wikipedia.org/wiki/Nymwars">nymwars</a> and post-<a href="https://en.wikipedia.org/wiki/PRISM_(surveillance_program)">PRISM</a> we know exactly how much Google cared about the privacy and security of its users. But Google is only one particular example. In general don't trust pledges made by companies, even if the people running them seem really sincere.
|
|
710
|
+Almost everywhere on the web you will read that self-signed certificates are worthless. They bring up scary looking browser warnings and gurus will advise you not to use them. Self-signed certificates are quite useful though. What the scary warnings mean - and it would be good if they explained this more clearly - is that you have an encrypted connection established but there is <i>no certainty about who that connection is with</i>. The usual solution to this is to get a "real" SSL certificate from one of the certificate authorities, but it's far from clear that such authorities can be trusted. There have been various scandals involving such organisations, and it does not seem plausible to assume that they are somehow immune to the sort of treatment which <a href="http://en.wikipedia.org/wiki/Lavabit">Lavabit</a> received. So although most internet users have been trained to look for the lock icon as an indication that the connection is secured that belief may not always be well founded.
|
|
711
|
+</p>
|
|
712
|
+
|
|
713
|
+<p>
|
|
714
|
+Security of web sites on the internet is still a somewhat unsolved problem, and what we have now is a less than ideal but <i>good enough to fool most of the people most of the time</i> kind of arrangement. Long term a better solution might be to have a number of certificate authorities in a number of different jurisdictions vote on whether a given certificate actually belongs to a given domain name. Experimental systems like this exist, but they're not widely used. Since the current certificate system has an enormous amount of inertia behind it change could be slow in arriving.
|
|
715
|
+</p>
|
|
716
|
+
|
|
717
|
+<p>
|
|
718
|
+For now a self-signed certificate will probably in most cases protect your communications from "bulk" passive surveillance. Once you've got past the scary browser warning and accepted the certificate under most conditions (except when starting up the Tor browser) you should not repeatedly see that warning. If you do then someone may be trying to meddle with your connection to the server. You can also take a note of the fingerprint of the certificate and verify that if you are especially concerned. If the fingerprint remains the same then you're probably ok.
|
578
|
719
|
</p>
|
579
|
720
|
</div>
|
580
|
721
|
</div>
|
581
|
722
|
<div id="outline-container-unnumbered-9" class="outline-2">
|
582
|
|
-<h2 id="unnumbered-9">Why does my email keep getting rejected as spam by Gmail/etc?</h2>
|
|
723
|
+<h2 id="unnumbered-9">Why not use the services of $company instead? They took the Seppuku pledge</h2>
|
583
|
724
|
<div class="outline-text-2" id="text-unnumbered-9">
|
584
|
725
|
<p>
|
|
726
|
+<a href="http://seppuku.cryptostorm.org/">That pledge</a> is utterly worthless. Years ago people trusted Google in the same sort of way, because they promised not be be evil and because a lot of the engineers working for them seemed like honest types who were "<i>on our side</i>". Post-<a href="https://en.wikipedia.org/wiki/Nymwars">nymwars</a> and post-<a href="https://en.wikipedia.org/wiki/PRISM_(surveillance_program)">PRISM</a> we know exactly how much Google cared about the privacy and security of its users. But Google is only one particular example. In general don't trust pledges made by companies, even if the people running them seem really sincere.
|
|
727
|
+</p>
|
|
728
|
+</div>
|
|
729
|
+</div>
|
|
730
|
+<div id="outline-container-unnumbered-10" class="outline-2">
|
|
731
|
+<h2 id="unnumbered-10">Why does my email keep getting rejected as spam by Gmail/etc?</h2>
|
|
732
|
+<div class="outline-text-2" id="text-unnumbered-10">
|
|
733
|
+<p>
|
585
|
734
|
Welcome to the world of email. Email is really the archetypal decentralized service, developed during the early days of the internet. In principle anyone can run an email server, and that's exactly what you're doing with Freedombone. Email is very useful, but it has a big problem, and that's that the protocols are totally insecure. That made it easy for spammers to do their thing, and in response highly elaborate spam filtering and blocking systems were developed. Chances are that your emails are being blocked in this way. Sometimes the blocking is so indisciminate that entire countries are excluded. What can you do about it? Unless you control the block list at the receiving end probably you can't do anything. There is zero accountability for such blocking, and you can't just contact someone and say "hey, I'm not a spammer". This system works well for the big internet companies because it effectively centralises email to a few well-known brand names and keeps any independent servers out.
|
586
|
735
|
</p>
|
587
|
736
|
|