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.
[SOLVED] How to install unsigned SSL for IP address?
[SOLVED] How to install unsigned SSL for IP address?
In the VestaCP admin panel, I go to web > edit then check the checkbox for SSL support. Then I click generate CSR with domain field as the IP address 123.456.78.910.
That outputs the CSR, certificate, and private key. I copy paste the certificate and key (entire selection in the fields) to the fields under SSL support checkbox on the edit page. Saving is successful and I try to go to https://123.456.78.910 but I get a "problem loading page". The normal http:// works fine.
How does one get the unsigned SSL working on their server for an IP address?
Successfully working with a domain name:
VestaCP admin panel > web > edit domain.com > check SSL support > generate CSR > Ok > copy paste full selection from "certificate" and "key" to their respective fields in the "edit domain.com" section from before (SSL certificate and SSL key), then save.
Solution with IP address:
METHOD 1 (with vestacp admin SSL certificate and key): you can find the unsigned SSL certificate and private key that vestacp admin panel uses at /usr/local/vesta/ssl/
Open these with vim or download em through SFTP or FTP so you can copy paste em. Use the full text in each file.
VestaCP admin panel > web > edit default.domain > check SSL support > paste the cert into the cert field and key into key field. Save, and should work. Go to https://123.456.78.910:8443 to access your site with SSL.
METHOD 2 (with generated certificate and key): same as with domain name except when generating CSR, instead of domain name and admin email being default.domain and [email protected] type the IP address and admin@IPaddress in those fields (replace IP address with the actual ip address). Go to https://123.456.78.910:8443 to access your site with SSL.
Note
If you changed the web root folder by editing the apache config file in /home/admin/conf/web/apache2.conf, then for HTTPS you'll have to also edit the apache config file for SSL, in /home/admin/conf/web/sapache2.conf
That outputs the CSR, certificate, and private key. I copy paste the certificate and key (entire selection in the fields) to the fields under SSL support checkbox on the edit page. Saving is successful and I try to go to https://123.456.78.910 but I get a "problem loading page". The normal http:// works fine.
How does one get the unsigned SSL working on their server for an IP address?
Successfully working with a domain name:
VestaCP admin panel > web > edit domain.com > check SSL support > generate CSR > Ok > copy paste full selection from "certificate" and "key" to their respective fields in the "edit domain.com" section from before (SSL certificate and SSL key), then save.
Solution with IP address:
METHOD 1 (with vestacp admin SSL certificate and key): you can find the unsigned SSL certificate and private key that vestacp admin panel uses at /usr/local/vesta/ssl/
Open these with vim or download em through SFTP or FTP so you can copy paste em. Use the full text in each file.
VestaCP admin panel > web > edit default.domain > check SSL support > paste the cert into the cert field and key into key field. Save, and should work. Go to https://123.456.78.910:8443 to access your site with SSL.
METHOD 2 (with generated certificate and key): same as with domain name except when generating CSR, instead of domain name and admin email being default.domain and [email protected] type the IP address and admin@IPaddress in those fields (replace IP address with the actual ip address). Go to https://123.456.78.910:8443 to access your site with SSL.
Note
If you changed the web root folder by editing the apache config file in /home/admin/conf/web/apache2.conf, then for HTTPS you'll have to also edit the apache config file for SSL, in /home/admin/conf/web/sapache2.conf