With HestiaCP we can create websites very easily with hardly any effort, and naturally, we want our visitors to feel secure when they see that we use HTTPS and have a padlock next to our domain. Thanks to Let’s Encrypt, this is incredibly easy to do these days. In fact, it is so easy that all you need is a single click. First, however, you need to keep a few things in mind to ensure the certificate is created on the first attempt.
The first thing we need to ensure is that our domain points to our HestiaCP server. Without this step, you cannot proceed with anything explained here.
When we create a new website in HestiaCP, several configuration options become available once it has been created. One of these lets us enable Soporte SSL, where we can add an existing certificate or create a new one by enabling the option Soporte Lets Encrypt. When we click this last option, the following message appears in green: Tu certificado será emitido automáticamente en 5 minutos.
Finally, we save and see an error:
This error occurs because Let’s Encrypt and HestiaCP run a command to create the certificate for a specific domain. However, Let’s Encrypt needs an email address to send domain renewal notifications. By default, it uses the email address configured for the admin account. Since we have not configured it ourselves, it uses an email address that does not exist, which causes the error. This is why we need to configure an email address first.
Go to Usuarios > Admin > Editar and replace the email address with one of our own:
Finally, all that remains is to go to Web > miweb.com > Editar and re-enable SSL and save. In a few moments, we will be able to access our website via HTTPS.