Page 1 of 1

Install of VestaCP and SSL for itself

Posted: Sat Apr 28, 2018 9:10 pm
by mericson
I've been puzzled by the fact that the VestaCP installer doesn't setup a Let's Encrypt SSL for its own control panel it installs. Especially since the current installation process, and resulting self-signed certificate, is a very bad security practice.

The self-signed certificate requires users to ignore security warnings (invalid certificate). People already too readily ignore security warnings. Making it a 'normal' part of the install process is bad. If there were a man in the middle attack at some point, people might ignore the certificate warning presented to their browser (because it is normal) and none the wiser provide their username and password to the attacker.

The work-around, which it seems shouldn't be necessary, is to either a) add that self-signed certificate as trusted on the client machine/browser. Or, b) manually change the VestaCP port to 80, enable SSL, and change it back.

Neither of these solutions are very good, and 'a' is awful because it means that certificate has to be added as trusted by every user for every device from which they are accessing VestaCP. Blech!

The reason 'b' is necessary is that Let's Encrypt (LE) challenge/response process used by LE requires the server to respond to a challenge on port 80. Since VestaCP is listening on port 8083, the challenge fails. It is necessary to manually edit configuration to have VestaCP temporarily listen on port 80 to successfully enable Let's Encrypt via VestaCP UI or CLI.

It seems ridiculous to require a manual step as the last part of the installation so the installation is usable and secure.
The installer *should* temporarily setup a vhost on port 80 for the host domain, to serve only the LE challenge page. After successful LE certificate install for the domain, then the installer needs to configure its use for port 8083.

If that were done, the VestaCP URL presented upon successful installation would actually work without a security warning! And save many the tedious process of creating a real certificate for their VestaCP domain.

Re: Install of VestaCP and SSL for itself

Posted: Sun Apr 29, 2018 5:13 am
by ScIT

Re: Install of VestaCP and SSL for itself

Posted: Mon Apr 30, 2018 3:21 am
by mericson
ScIT wrote:
Sun Apr 29, 2018 5:13 am
viewtopic.php?f=19&t=13057
OK, a third work-around for what should be done by the VestaCP installer.

Re: Install of VestaCP and SSL for itself

Posted: Sun Sep 16, 2018 4:47 pm
by tom256
mericson wrote:
Mon Apr 30, 2018 3:21 am
OK, a third work-around for what should be done by the VestaCP installer.
I Agree with you, There are a lot of ready useful things which can be implemented easily in VestaCP by it's developers:
1- SSL for VestaCP panel using Let's Encrypt SSL Certificate
2- PHP Version Selector
3- Fixing some issues in PHPmyadmin
4- Adding FileManager to GUI by default, but disabled until user pays for it! It can increase revenue, a lot of ppl don't know there is a filemanager developed by vestacp team!

Re: Install of VestaCP and SSL for itself

Posted: Sun Sep 23, 2018 6:07 pm
by mericson
tom256 wrote:
Sun Sep 16, 2018 4:47 pm
I Agree with you, There are a lot of ready useful things which can be implemented easily in VestaCP by it's developers:
I don't disagree, I'm sure there is a huge backlog of valuable enhancements that can be made and limited resources. I wish I was a bit handier with Linux administration and as a shell developer to contribute. However, I think this really should be treated as an egregious user-experience and security defect.

I think I'll start a new thread to make that fact clear.

Re: Install of VestaCP and SSL for itself

Posted: Wed Jul 24, 2019 8:02 pm
by mericson
There is now a built-in feature to add SSL to the Vesta Control Panel itself.

See: viewtopic.php?f=10&t=17353