Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Protect Your Websites with Let’s Encrypt

#1
Protect Your Websites with Let’s Encrypt

<div style="margin: 5px 5% 10px 5%;"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2019/01/protect-your-websites-with-lets-encrypt.jpg" width="1700" height="741" title="" alt="" /></div><div><div><img src="http://www.sickgaming.net/blog/wp-content/uploads/2019/01/protect-your-websites-with-lets-encrypt.jpg" class="ff-og-image-inserted" /></div>
<p><strong>Learn how to use Let’s Encrypt in this tutorial from our archives.</strong></p>
<p>Back in the bad old days, setting up basic HTTPS with a certificate authority cost as much as several hundred dollars per year, and the process was difficult and error-prone to set up. Now we have <a href="https://letsencrypt.org">Let’s Encrypt</a> for free, and the whole thing takes just a few minutes.</p>
<h3>Why Encrypt?</h3>
<p>Why encrypt your sites? Because unencrypted HTTP sessions are wide open to multiple abuses:</p>
<p>Internet service providers lead the code-injecting offenders. How to foil their nefarious desires? Your best defense is HTTPS. Let’s review how HTTPS works.</p>
<h3>Chain of Trust</h3>
<p>You could set up asymmetric encryption between your site and everyone who is allowed to access it. This is very strong protection: GPG (GNU Privacy Guard, see <a href="https://www.linux.com/learn/how-encrypt-email-linux">How to Encrypt Email in Linux</a>), and OpenSSH are common tools for asymmetric encryption. These rely on public-private key pairs. You can freely share public keys, while your private keys must be protected and never shared. The public key encrypts, and the private key decrypts.</p>
<p>This is a multi-step process that does not scale for random web-surfing, however, because it requires exchanging public keys before establishing a session, and you have to generate and manage key pairs. An HTTPS session automates public key distribution, and sensitive sites, such as shopping and banking, are verified by a third-party certificate authority (CA) such as Comodo, Verisign, or Thawte.</p>
<p>When you visit an HTTPS site, it provides a digital certificate to your web browser. This certificate verifies that your session is strongly encrypted and supplies information about the site, such as organization’s name, the organization that issued the certificate, and the name of the certificate authority. You can see all of this information, and the digital certificate, by clicking on the little padlock in your web browser’s address bar (Figure 1).</p>
<p>The major web browsers, including Opera, Firefox, Chromium, and Chrome, all rely on the certificate authority to verify the authenticity of the site’s digital certificate. The little padlock gives the status at a glance; green = strong SSL encryption and verified identity. Web browsers also warn you about malicious sites, sites with incorrectly configured SSL certificates, and they treat self-signed certificates as untrusted.</p>
<p>So how do web browsers know who to trust? Browsers include a root store, a batch of root certificates, which are stored in <code>/usr/share/ca-certificates/mozilla/</code>. Site certificates are verified against your root store. Your root store is maintained by your package manager, just like any other software on your Linux system. On Ubuntu, they are supplied by the <code>ca-certificates</code> package. The root store itself is <a href="https://www.mozilla.org/en-US/about/governance/policies/security-group/certs/policy/">maintained by Mozilla</a> for Linux.</p>
<p>As you can see, it takes a complex infrastructure to make all of this work. If you perform any sensitive online transactions, such as shopping or banking, you are trusting a whole lot of unknown people to protect you.</p>
<h3>Encryption Everywhere</h3>
<p>Let’s Encrypt is a global certificate authority, similar to the commercial CAs. Let’s Encrypt was founded by the non-profit Internet Security Research Group (ISRG) to make it easier to secure Websites. I don’t consider it sufficient for shopping and banking sites, for reasons which I will get to shortly, but it’s great for securing blogs, news, and informational sites that don’t have financial transactions.</p>
<p>There are at least three ways to use Let’s Encrypt. The best way is with the <a href="https://certbot.eff.org/">Certbot client</a>, which is maintained by the Electronic Frontier Foundation (EFF). This requires shell access to your site.</p>
<p>If you are on shared hosting then you probably don’t have shell access. The easiest method in this case is using a <a href="https://community.letsencrypt.org/t/web-hosting-who-support-lets-encrypt/6920">host that supports Let’s Encrypt</a>.</p>
<p>If your host does not support Let’s Encrypt, but supports custom certificates, then you can <a href="https://community.letsencrypt.org/t/web-hosting-who-support-lets-encrypt/6920">create and upload your certificate manually</a> with Certbot. It’s a complex process, so you’ll want to study the documentation thoroughly.</p>
<p>When you have installed your certificate use <a href="https://www.ssllabs.com/ssltest/">SSL Server Test</a> to test your site.</p>
<p>Let’s Encrypt digital certificates are good for 90 days. When you install Certbot it should also install a cron job for automatic renewal, and it includes a command to test that the automatic renewal works. You may use your existing private key or certificate signing request (CSR), and it supports wildcard certificates.</p>
<h3>Limitations</h3>
<p>Let’s Encrypt has some limitations: it performs only domain validation, that is, it issues a certificate to whoever controls the domain. This is basic SSL. It does not support Organization Validation (OV) or Extended Validation (EV) because it is not possible to automate identity validation. I would not trust a banking or shopping site that uses Let’s Encrypt– let ’em spend the bucks for a complete package that includes identity validation.</p>
<p>As a free-of-cost service run by a non-profit organization there is no commercial support, but only documentation and community support, both of which are quite good.</p>
<p>The Internet is full of malice. Everything should be encrypted. Start with <a href="https://letsencrypt.org/">Let’s Encrypt </a>to protect your site visitors.</p>
<p><em>Learn more about Linux through the free <a href="https://training.linuxfoundation.org/linux-courses/system-administration-training/introduction-to-linux">“Introduction to Linux” </a>course from The Linux Foundation and edX.</em></p>
</div>
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016