Vesta control panel use main sites SSL cert

9th May 2017
by InfiniteMonkeys

    Vesta control panel use main sites SSL cert

    Here is how to re-use your site SSL for both the site and the Vesta control panel. If you are using Letsencrypt then both the site and the CP will use the auto renewed SSL cert.

    * This assumes Nginx front end with an Apache backend and you have already enabled Letsencrypt on your main website.

    Backup the old CP SSl files:

    mv /usr/local/vesta/ssl/certificate.crt /usr/local/vesta/ssl/oldcpssl.crt
    mv /usr/local/vesta/ssl/certificate.key /usr/local/vesta/ssl/oldcpssl.key

    Create the Symlinks:

    ln -s /home/admin/conf/web/ssl.yoursite.crt /usr/local/vesta/ssl/certificate.crt
    ln -s /home/admin/conf/web/ssl.yoursite.key /usr/local/vesta/ssl/certificate.key

    Quick restart:

    service vesta restart

    * You may need to clear your browser cache.

    And viola!

    You can now access https://yoursite:8083 and get the LE SSL cert rather than a warning.