+2 votes
in Web & Google by (63.4k points)
When HestiaCP or VestaCP is installed on a server, it installs its own default certificate for the hostname and hence browsers give warning about an invalid certificate. How can I install Let’s Encrypt SSL Certificate for the hostname?

1 Answer

+1 vote
by (271k points)
edited by
Best answer

It's very simple to install the "Let’s Encrypt" SSL Certificate for the hostname. Here are the steps:

  • Open the terminal and SSH to your server using root login.
  • Check the hostname of your server using the command hostname. If the hostname is not set correctly (e.g. host.domain.com), set the hostname.

# hostname host.domain.com

  • Once a proper hostname is set, type the following command on the terminal to install Let’s Encrypt SSL Certificate for the hostname.

# v-add-letsencrypt-host

If you don't like to use the above command, you can follow the steps mentioned on this page: https://www.bitsdiscover.com/how-to-use-lets-encrypt-ssl-certificate-for-hostname-on-vestacp-or-hestiacp-login-panel/