Here’s a little workaround to the above glitch.
How Let’s Encrypt works – https://letsencrypt.org/how-it-works/
How to setup SSL/TLS certificate on your domain server using Let’s Encrypt – https://www.youtube.com/watch?v=GPcznB74GPs
While following the above, I faced “404 error” and the verification of my domain wouldn’t go through. I read solutions on some forums and got an idea that basically I have to let my cPanel know to read any file without an extension as a .txt file. This change can be added in MIME settings on cPanel. But my MIME types already had an entry for file without extension:

But my verification wouldn’t succeed. So what I did was to save the file without .txt in ~/.well-known/acme-challenge on cPanel.

This worked!
Please let me know if there are other ways to this.
