[Solved] After replacing SSL for VestaCP Panel won't start
Posted: Mon Feb 01, 2016 5:03 pm
Hello,
after following this
Now Panel won't start
when I run
I get this error
Job for vesta.service failed. See 'systemctl status vesta.service' and 'journalctl -xn' for details.
So I did
And the problem is I don't have orignal key and crt file.
after following this
I have replaced certificate.key and certificate.crt from /usr/local/vesta/ssl/skid wrote:You mean control panel ssl certificate? If yes then checkout /usr/local/vesta/ssl/ directory. Replace files accordingly and restart vestaVesta is running on separate nginx web. As per nginx documentation CA bundle can be added as tail into certificate.Code: Select all
service vesta restart
Code: Select all
cat www.example.com.crt bundle.crt > www.example.com.chained.crt
Now Panel won't start
when I run
Code: Select all
service vesta restart
Job for vesta.service failed. See 'systemctl status vesta.service' and 'journalctl -xn' for details.
So I did
Code: Select all
systemctl status vesta.service -l
● vesta.service - LSB: starts the vesta control panel
Loaded: loaded (/etc/init.d/vesta)
Active: failed (Result: exit-code) since Mon 2016-02-01 17:01:33 UTC; 37s ago
Process: 2273 ExecStart=/etc/init.d/vesta start (code=exited, status=1/FAILURE)
Feb 01 17:01:33 host.com systemd[1]: Starting LSB: starts the vesta control panel...
Feb 01 17:01:33 host.com vesta[2273]: Starting vesta-nginx: vesta-nginxEnter PEM pass phrase:
Feb 01 17:01:33 host.com vesta[2273]: nginx: [emerg] SSL_CTX_use_PrivateKey_file("/usr/local/vesta/ssl/certificate.key") failed (SSL: error:0906406D:PEM routines:PEM_def_callback:problems getting password error:0907B068:PEM routines:PEM_READ_BIO_PRIVATEKEY:bad password read error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib)
Feb 01 17:01:33 host.com systemd[1]: vesta.service: control process exited, code=exited status=1
Feb 01 17:01:33 host.com systemd[1]: Failed to start LSB: starts the vesta control panel.
Feb 01 17:01:33 host.com systemd[1]: Unit vesta.service entered failed state.