Author Topic: Invalid certificate/key pair and Apache server fails to start  (Read 778 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Invalid certificate/key pair and Apache server fails to start
« on: January 16, 2018, 06:17:58 AM »
Hello,

I generated a certificate from Security > SSL Generator. I then went to Apache>SSL Manager taking me to the vHost manager. I installed a certificate but get a Invalid Certificate Key/pair (for domain I typed in my website domain). I also get this and Apache webserver fails to start:
Code: [Select]
Redirecting to /bin/systemctl restart httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
I think above is a syntax error in the apache code.. but this syntax error occurs whenever I try to install a certificate. What can I do?
« Last Edit: January 16, 2018, 06:19:44 AM by uzikills »

Offline
*
Re: Invalid certificate/key pair and Apache server fails to start
« Reply #1 on: January 16, 2018, 08:42:05 AM »
Examine log files in /usr/local/apache/logs/

Open /usr/local/apache/conf.d/vhosts-ssl.conf and verify that parameters

SSLCertificateFile
SSLCertificateKeyFile
(optional) SSLCertificateChainFile

point to right files, files exist and accessible for Apache. Check your key/cert pair using https://www.sslshopper.com/certificate-key-matcher.html
« Last Edit: January 16, 2018, 09:01:09 AM by PavelZh »