Monday, August 17, 2020

Free web hosting and free SSL cert

Back in the days most of us (with some tech backgrounds) have played with creating a personal website by writing our own HTML that has our bio and some pictures embedded. And most of us used free web hosting (why pay for it anyway? :P) Then FB got popular and the rest is history. Fast forward 2 decades and the most popular free "site builders" like Wix and Google don't serve raw HTML page you write anymore, which is understandable because it's harder to secure things they don't control. Long story short, I needed to serve a page, and using the HTTPS protocol. And InfinityFree came to rescue!

I created a new (free) account and provided it a domain name I purchased from GoDaddy years ago (for fun and good luck mainly :P) By doing so I needed to change the namesever records to point to the ones used by InfinityFree/Epizy. Then I clicked on the "Free SSL certificates tab" which listed 4 steps:

1. Add CNAME records (which is done on the InfinityFree/Epizy side because of the nameserver change) This took a few hours to become effective. 

2. Request a new (free) SSL cert. Not sure how long it took between request and issue.

3. Install the new cert. This is done via copy-and-paste the key and the cert under the SSL/TLS in cPanel. 

4. Check for validity of your cert. You can use SSLShopper.com and simply type in your www.<domain name>

Any html you want it to serve can be uploaded via FTP or File Manager under the htdocs dir. For those who used Apache back in the days of course knows about htdocs. Nginx use the same dir too. The good thing is InfinityFree/Epizy created a new user for such purpose that is separated from your InfinityFree logon.  

The only downside of free SSL cert is that it usually expires soon. I setup reminder on the InfinityFree side for renewal. Let's see if that works. Anyway, I think it has done a good job already for such free services.