Generating Certificate: (CRT) & Private Key (KEY) for my website from my local machine

My hosting provider is: Namecheap

I’m using a control panel to manage my site. They don’t have any plugins to use Let’s encrypt. So I decided to generate CRT and Key files on my local machine by installing Certbot. And paste both on the following fields.

Please suggest me the best way. Or is it possible to generate from my local machine? I’m using Ubuntu 16.04.

Hi @RenjithVR4

yes, this is possible. Use something like

certbot certonly --manual --preferred-challenges http -d -d

Then certbot creates a file per domain name you have to transfer to your webserver. In the directory


so Letsencrypt is able to validate this file via

If that works, Certbot creates a Certificate request and can download the certificate. Then you can copy both files in your menu.

1 Like

Thank you. Now I need to write a htaccess rule to strict https redirection. But I have found some issues.
If we are using https, the menu is not visible. I don’t know why this is happening!!!

1 Like may help you to understand what the problem is.

Happy to hear that it works.

If you want to check your redirects, my (new) profile link may be helpful. It's a redirect check http + https + www + non-www.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.