Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Vesta Web Interface
  • Search

Web interface using different ssl certificate?

Questions regarding the Web Interface
GUI
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
prxbl
Posts: 17
Joined: Fri Aug 14, 2015 5:28 pm

Web interface using different ssl certificate?
  • Quote

Post by prxbl » Mon Apr 03, 2017 3:12 pm

I've recently installed a Comodo SSl certificate and I've switched my main domain to HTTPS.
However the web interface of vesta does not use the new certificate and is still giving me the error message
"Your connection is not private"

I am using Vesta 0.9.8 r17 on Ubuntu 14.04
How can I fix this, so that the vesta web interface makes use of the same certificate?

Thanks
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Web interface using different ssl certificate?
  • Quote

Post by skurudo » Tue Apr 04, 2017 10:40 am

Quick answer - yes, different.
Top

prxbl
Posts: 17
Joined: Fri Aug 14, 2015 5:28 pm

Re: Web interface using different ssl certificate?
  • Quote

Post by prxbl » Tue Apr 04, 2017 11:10 am

How can I fix this?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Web interface using different ssl certificate?
  • Quote

Post by skurudo » Tue Apr 04, 2017 11:15 am

You have two ways to do this:
1) via web... SERVER -> configure -> Vesta SSL

2) vesta-nginx -> /usr/local/vesta/nginx/conf/nginx.conf and add path to your cettificate:

Code: Select all

    ssl_certificate      /home/admin/conf/web/ssl.domain.ru.pem;
    ssl_certificate_key  /home/admin/conf/web/ssl.domain.ru.key;
Top

prxbl
Posts: 17
Joined: Fri Aug 14, 2015 5:28 pm

Re: Web interface using different ssl certificate?
  • Quote

Post by prxbl » Tue Apr 04, 2017 11:34 am

Method 1 would have been nice but it did not work, I was getting this error "Error: Certificate Authority not found", even though there we're only 2 fields: SSL Certificate and SSL Key which I was copy and pasting from the domain config tab.

Method 2 worked and it successfully solved the issue.
Thank you!
Top

techforusnews
Posts: 1
Joined: Tue Apr 04, 2017 1:42 pm

Re: Web interface using different ssl certificate?
  • Quote

Post by techforusnews » Tue Apr 04, 2017 1:46 pm

prxbl wrote:I've recently installed a Comodo SSl certificate and I've switched my main domain to HTTPS.
However the web interface of vesta does not use the new certificate and is still giving me the error message
"Your connection is not private"

I am using Vesta 0.9.8 r17 on Ubuntu 14.04
How can I fix this, so that the vesta web interface makes use of the same certificate?

Thanks
The point is that if you use another sub-domain for Vesta cpanel and turn HTTPS, then you will definitely get the "Your connection is not private" error as the SSL certificate is only valid for one URL. It's not a wildcat SSL, I think.

If you want to use HTTPS for all sub-domain, buy a wildcat SSL certificate or use Let's Encrypt.

Updated: Try this one to bypass the Your connection is not private error in Google Chrome temporarily.
Last edited by techforusnews on Sun Mar 01, 2020 7:15 am, edited 2 times in total.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Web interface using different ssl certificate?
  • Quote

Post by skurudo » Tue Apr 04, 2017 2:48 pm

techforusnews wrote:If you want to use HTTPS for all sub-domain, buy a wildcat SSL certificate or use Let's Encrypt.
Nope, it's not it. You have two different nginx instanses: for sites and for Vesta. ;)
Top

Fleuv
Posts: 18
Joined: Thu May 28, 2015 4:27 pm

Os: Ubuntu 17x
Web: nginx + php-fpm
Re: Web interface using different ssl certificate?
  • Quote

Post by Fleuv » Fri Feb 08, 2019 10:12 am

skurudo wrote: ↑
Tue Apr 04, 2017 11:15 am
You have two ways to do this:
1) via web... SERVER -> configure -> Vesta SSL

2) vesta-nginx -> /usr/local/vesta/nginx/conf/nginx.conf and add path to your cettificate:

Code: Select all

    ssl_certificate      /home/admin/conf/web/ssl.domain.ru.pem;
    ssl_certificate_key  /home/admin/conf/web/ssl.domain.ru.key;
I would like to add a third method to that:
  • Install and setup the domain for the web interface, via the vesta web interface itself.
  • Go to <your-server-ip>:8083 and login to the user with the domain used for the web interface (usually the admin user).
  • Edit the domain and check SSL Support to start installation of the certificate.
  • After installation of the certificate, copy it by running the following command:

    Code: Select all

    v-update-host-certificate admin $HOSTNAME
    Assuming that you're admin user uses the web interface domain and $HOSTNAME contains the actual domain name used for the web interface.
To check if everything worked as it should you can do something like.

Code: Select all

diff /usr/local/vesta/ssl/certificate.crt /home/admin/conf/web/ssl.$HOSTNAME.pem && diff /usr/local/vesta/ssl/certificate.key /home/admin/conf/web/ssl.$HOSTNAME.key
If this returns nothing / true it means that the files are equal, what is what we want.
Top


Post Reply
  • Print view

8 posts • Page 1 of 1

Return to “Web Interface”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password