{"componentChunkName":"component---src-templates-blog-post-js","path":"/blog/lets-encrypt-cpanel-tip","result":{"data":{"markdownRemark":{"html":"<p>As I got around getting this website up finally in early 2020, I wanted to make sure that the domain I'll be using will be secured with an SSL certificate. My hosting provider <em>does</em> provide automated, free SSL certificates from within the cPanel but they were self-signed and the browser (Chrome) by default would complain about it. So I went to <em>Let's Encrypt</em>.</p>\n<p><a href=\"https://letsencrypt.org/\">Let's Encrypt</a> is the fantastic certificate authority that allows us to get valid SSL certificates for free. The certificates are valid for 4 months, which is a bit of a shame, but given the usefulness of the whole service, I think well worth it.</p>\n<p>The certificates are issued by partners that work with Let's Encrypt. In my case, I stumbled upon <a href=\"https://www.sslforfree.com/\">SSL for Free</a>. Their site is quite straightforward. However, as their main call-to-action's text box placeholder says \"<em>enter your website to secure</em>\", I was under the impression that you can enter one domain at a time - whether regular or wildcard. </p>\n<p>However, the main point of this article is that you probably should specify multiple domains for your site. In my case I had to create a certificate for multiple domains - regular and wildcard: <code>2x2works.com</code> and <code>*.2x2works.com</code>.</p>\n<p>If you specify a single domain when starting the process on <em>SSL for Free</em> site (eg. <code>2x2works.com</code>, like I did initially), you get a certificate valid for that domain and the <strong><em>www-</em></strong> version of it (so <code>2x2works.com</code> and <code>www.2x2works.com</code>). Great until I wanted to have <code>mail.2x2works.com</code> secured too. </p>\n<p>If you specify <code>*.2x2works.com</code>, you'll cover all the possible subdomains but not the non-www version - you don't get the https on non-www (i.e. <code>2x2works.com</code> doesn't work). Bummer.</p>\n<p>So the trick is to <em>request multiple domains initially</em> - one regular and the other wildcard. This way you get what you most likely want in the first place which would work without issues on cPanel (v.84.x in my case at least).</p>\n<p>So go to <a href=\"https://www.sslforfree.com/\">SSL for Free</a> and get your SSL certificate for free!</p>\n<p><strong>Resources</strong></p>\n<ol>\n<li><a href=\"https://www.youtube.com/watch?v=K90RxdQp9OE\">How To Get A Trusted SSL Certificate for FREE (Works 2020)</a> for steps on dealing with cPanel configuration. </li>\n</ol>","excerpt":"As I got around getting this website up finally in early 2020, I wanted to make sure that the domain I'll be using will be secured with an SSL certificate. My…","frontmatter":{"date":"11 January, 2020","path":"/blog/lets-encrypt-cpanel-tip","title":"Properly configure free SSL for domain on cPanel using Let's Encrypt SSL certificate"},"fields":{"readingTime":{"text":"2 min read"}}}},"pageContext":{}}}