We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Problem with panel SSL
Problem with panel SSL
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?
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?
Re: Problem with panel SSL
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.
-
- Posts: 139
- Joined: Thu Jan 07, 2016 12:01 am
Re: Problem with panel SSL
Are you running Apache? Nginx?
Re: Problem with panel SSL
Both. Apache for Application back end and Nginx for front end (Nginx Reverse Proxy)..BBuchanan1013 wrote:Are you running Apache? Nginx?
-
- Posts: 139
- Joined: Thu Jan 07, 2016 12:01 am
Re: Problem with panel SSL
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
We need to change the cert and the key, my example:
Once that file is edited to match the cert and key, all we need to do is save it and restart vesta with:
panel should now be secure with your ssl
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;
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.
Code: Select all
user@server: service vesta restart