Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion Debian/Ubuntu
  • Search

Problem with panel SSL

Debian/Ubuntu related topics
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
azafor
Posts: 2
Joined: Mon May 22, 2017 12:49 pm

Problem with panel SSL
  • Quote

Post by azafor » Mon May 22, 2017 2:05 pm

I've been using vestaCP and the latest version installed. I've been trying to install SSL in CentOS panel, In my case the panel url is panel.mydomain.tld:8083. When I'm trying to login my panel, the address bar is red with "not secure" message.

I'know it's because SSL not installed in panel.mydomain.tld:8083, But I also don't know how to install SSL in panel.mydomain.tld:8083.

Can you guys help me on this?
Top

Phogo
Posts: 60
Joined: Fri Dec 09, 2016 12:40 pm

Os: CentOS 6x
Web: nginx + php-fpm
Re: Problem with panel SSL
  • Quote

Post by Phogo » Mon May 22, 2017 2:27 pm

I just added the panel.mydomain domain to the admin account and clicked SSL support. Worked for me. I did need to restart the vesta service though.
Top

BBuchanan1013
Posts: 139
Joined: Thu Jan 07, 2016 12:01 am

Re: Problem with panel SSL
  • Quote

Post by BBuchanan1013 » Sun May 28, 2017 3:22 am

Are you running Apache? Nginx?
Top

azafor
Posts: 2
Joined: Mon May 22, 2017 12:49 pm

Re: Problem with panel SSL
  • Quote

Post by azafor » Sun May 28, 2017 5:34 am

BBuchanan1013 wrote:Are you running Apache? Nginx?
Both. Apache for Application back end and Nginx for front end (Nginx Reverse Proxy)..
Top

BBuchanan1013
Posts: 139
Joined: Thu Jan 07, 2016 12:01 am

Re: Problem with panel SSL
  • Quote

Post by BBuchanan1013 » Thu Jun 01, 2017 7:01 pm

Ok, to install the SSL into the Panel or backend is very simple. Your gonna need a few things before you get started:

The Cert location (cert, privkey, chain(just in case))
SSH
SFTP or FTP with root access

For this example I'm going to use the SSL certs I get from LetsEncrypt (the github version, not the built in. Info should be similar):
1. SFTP or FTP into the server then goto the directy: /usr/local/vesta/nginx/conf/
2. Edit nginx.conf

Code: Select all

....~
 ssl                  on;
 ssl_certificate      /usr/local/vesta/ssl/certificate.crt;
 ssl_certificate_key  /usr/local/vesta/ssl/certificate.key;
 ssl_session_cache    shared:SSL:10m;
 ssl_session_timeout  10m;
We need to change the cert and the key, my example:

Code: Select all

....~
ssl_certificate    /etc/letsencrypt/live/accounts/domain.tld/cert.pem
ssl_certificate_key /etc/letsencrypt/live/accounts/domain.tld/privkey.pem
SpoilerShow
there is no difference between a .pem and .crt. They only changed the extension after the period so you can rename a .crt to a .pem without issue most times.
Once that file is edited to match the cert and key, all we need to do is save it and restart vesta with:

Code: Select all

user@server: service vesta restart
panel should now be secure with your ssl
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: Problem with panel SSL
  • Quote

Post by ScIT » Sat Jun 03, 2017 10:42 am

viewtopic.php?f=19&t=13057

In my point of view the best solution to add lets encrypt to vesta.
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Debian/Ubuntu”



  • 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
 

 

cron

Login  •  Register

I forgot my password