Page 1 of 1

SSL Works on normal url, but not on vesta panel

Posted: Wed Nov 09, 2016 11:49 am
by EbertonMoraes
Hello guys,
Maybe can help-me, i got this problem a days.

The SSL works fine in normal domain, but on Vesta panel not, how i can fix this?

See:
Image
Image

Re: SSL Works on normal url, but not on vesta panel

Posted: Fri Nov 11, 2016 11:47 am
by Shots
Hi,

You can edit your certificate.crt and certificate.key in /usr/local/vesta/ssl.

Hope this helps.

Re: SSL Works on normal url, but not on vesta panel

Posted: Mon Dec 05, 2016 11:37 am
by skurudo
or use can use Certificate for VestaCP Panel

Image

Server -> server configure -> Vesta SSL

Re: SSL Works on normal url, but not on vesta panel

Posted: Mon Dec 05, 2016 11:50 am
by ScIT
or you can have a look here: viewtopic.php?f=19&t=13057

Re: SSL Works on normal url, but not on vesta panel

Posted: Wed Dec 07, 2016 7:21 am
by delebash
skurudo

Using Nginx Php-fpm config

In the new Vesta -SSL feature -- How would I get the certificate to be valid if I have moved the control panel to a subdomain?
Vesta Control Panel is now hosted on vestacp.mydomain.com:myport

If I can't use the Vesta-SSL config what can you suggest.

I think the below example is one possible way, but I would like your input.

Add a website vestacp.mydomain.com and then generate it's certificates. Then I would link these certs to vesta's nginx.conf. After that I could disable the unused subdomain via returning 404.

Re: SSL Works on normal url, but not on vesta panel

Posted: Wed Dec 07, 2016 8:31 am
by ScIT
delebash wrote:skurudo

Using Nginx Php-fpm config

In the new Vesta -SSL feature -- How would I get the certificate to be valid if I have moved the control panel to a subdomain?
Vesta Control Panel is now hosted on vestacp.mydomain.com:myport

If I can't use the Vesta-SSL config what can you suggest.

I think the below example is one possible way, but I would like your input.

Add a website vestacp.mydomain.com and then generate it's certificates. Then I would link these certs to vesta's nginx.conf. After that I could disable the unused subdomain via returning 404.
Again, please have a look here: viewtopic.php?f=19&t=13057

My script does exactly the same thing, you've to create a LE-Cert for your subdomain, config the script and it will copy it to the right position with right permission.