Install SSL certificate for vestacp panel

Date posted: 12-09-2017

Vestacp is an open source control panel and by default it listens on 8083. By default, vestacp uses self signed certificate. In this post, we will explain on how to install SSL certificate for vestacp panel.

Prerequisites:

  1. Vesta cp panel access
  2. SSH server access
  3. SSL certificate and Private key of the certificate.

Implementation:

Let’s assume that we have certificate for domain.tld  and private key for the same.

Move the existing self signed certificate file.

mv /usr/local/vesta/ssl/certificate.crt /usr/local/vesta/ssl/certificate.crt_old

Move the private key file.

mv /usr/local/vesta/ssl/certificate.key /usr/local/vesta/ssl/certificate.key_old

Create a certificate file and append certificate content.

vi /usr/local/vesta/ssl/certificate.crt

Create a key file and add the private key content.

vi /usr/local/vesta/ssl/certificate.key

Restart the vestacp service.

service vesta restart

Access the vesta cp using the domain on the browser

https://domain.tld:8083

We will see secure icon on the browser.

 

Leave a Reply