Failed to start Apache Server after configuring Client Authenticationhow to install odoo (formerly OpenERP) 8 rpm on CentOS 7Failed at step EXEC spawning /usr/libexec/mariadb-prepare-db-dirApache Failure on Centos 7 not startingHttp request blocked on port 80firewall-cmd on OpenVZ CentOS 7I can't start Apache with module mod_jkApache Wont Start with SSL (Mis?)ConfiguredHow to start Apache on CentOS7 for the first timeCan't restart httpd.service on CentOS 7 (Apache server)Apache won't start with systemd
Cropping a message using array splits
Delta TSA-Precheck status removed
Can the sorting of a list be verified without comparing neighbors?
Why does the Earth follow an elliptical trajectory rather than a parabolic one?
Make all the squares explode
Would an 8% reduction in drag outweigh the weight addition from this custom CFD-tested winglet?
Ex-manager wants to stay in touch, I don't want to
How did Thanos not realise this had happened at the end of Endgame?
How are one-time password generators like Google Authenticator different from having two passwords?
Drawing Quarter-Circle
Washer drain pipe overflow
What is the significance of 4200 BCE in context of farming replacing foraging in Europe?
How can I answer high-school writing prompts without sounding weird and fake?
Why was this sacrifice sufficient?
Increase height of laser cut design file for enclosure
International Code of Ethics for order of co-authors in research papers
How do I compare the result of "1d20+x, with advantage" to "1d20+y, without advantage", assuming x < y?
The lexical root of the past tense forms differs from the lexical root of the infinitive form
Can you book a one-way ticket to the UK on a visa?
Ubuntu won't let me edit or delete .vimrc file
How are Core iX names like Core i5, i7 related to Haswell, Ivy Bridge?
Why in a Ethernet LAN, a packet sniffer can obtain all packets sent over the LAN?
"Fīliolō me auctum scito, salva Terentia"; what is "me" role in this phrase?
Is there any evidence to support the claim that the United States was "suckered into WW1" by Zionists, made by Benjamin Freedman in his 1961 speech?
Failed to start Apache Server after configuring Client Authentication
how to install odoo (formerly OpenERP) 8 rpm on CentOS 7Failed at step EXEC spawning /usr/libexec/mariadb-prepare-db-dirApache Failure on Centos 7 not startingHttp request blocked on port 80firewall-cmd on OpenVZ CentOS 7I can't start Apache with module mod_jkApache Wont Start with SSL (Mis?)ConfiguredHow to start Apache on CentOS7 for the first timeCan't restart httpd.service on CentOS 7 (Apache server)Apache won't start with systemd
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
CentOS 7 | Apache 2.4.6
I have built a private Certificate Authority (CA) and two certificates (one for the server and one for a client).
Then, I configured the Apache to use the certificate X.509 in order to answer HTTPS connections, and everything went fine (I saw it in the browser).
Then, when I was configuring the Client Authentication, restarted the server and got the following error:
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
Now it appears "Syntax OK" but I still can't start the server, getting the following errors, using the commands:
. systemctl status httpd.service
[root@localhost ~]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2019-05-01 18:35:40 WEST; 2min 3s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 12292 ExecStop=/bin/kill -WINCH $MAINPID (code=exited, status=1/FAILURE)
Process: 12288 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 12288 (code=exited, status=1/FAILURE)
May 01 18:35:37 src_ca systemd[1]: Starting The Apache HTTP Server...
May 01 18:35:40 src_ca systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
May 01 18:35:40 src_ca kill[12292]: kill: cannot find process ""
May 01 18:35:40 src_ca systemd[1]: httpd.service: control process exited, code=exited status=1
May 01 18:35:40 src_ca systemd[1]: Failed to start The Apache HTTP Server.
May 01 18:35:40 src_ca systemd[1]: Unit httpd.service entered failed state.
May 01 18:35:40 src_ca systemd[1]: httpd.service failed.
."journalctl -xe"
May 01 18:39:16 src_ca polkitd[2607]: Registered Authentication Agent for unix-process:12474:9099194 (system bus name :1.157 [/usr/bin/pkttyagent --notify-fd 5 --fallba
May 01 18:39:16 src_ca systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
May 01 18:39:18 src_ca systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
May 01 18:39:18 src_ca kill[12483]: kill: cannot find process ""
May 01 18:39:18 src_ca systemd[1]: httpd.service: control process exited, code=exited status=1
May 01 18:39:18 src_ca systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
May 01 18:39:18 src_ca systemd[1]: Unit httpd.service entered failed state.
May 01 18:39:18 src_ca systemd[1]: httpd.service failed.
May 01 18:39:18 src_ca polkitd[2607]: Unregistered Authentication Agent for unix-process:12474:9099194 (system bus name :1.157, object path /org/freedesktop/PolicyKit1/
I'll leave bellow the process that I have used to configure the Client Authentication. I'll leave some useful files at the bottom of the question.
Procedure to configure the Client Authentication
Started by locating the option "SSLCACertificateFile" in the file “/etc/httpd/conf.d/ssl.conf”:
vi +/SSLCACertificateFile /etc/httpd/conf.d/ssl.conf
Updated the path to:
/etc/pki/CA/certs/ca.crt
This is the location of the certificate for the CA.
To note: The certificate of the client is inside the folder /etc/pki/CA/certs. I am not sure if this causes any problem when configuring the Client Authentication. (Update: Edit 1)
Removed the "#" on the directive "SSLVerifyClient require".
Saved the changed and exited the file with
:wqand then restarted the server:systemctl restart httpd
Useful Files for debug
. "etc/hosts" (Adding the IP + Host)

. "/etc/hostname" (Can be done with hostnamectl set-hostname new-hostname)

. "etc/httpd/conf/httpd.conf"

. "/etc/httpd/conf.d/ssl.conf"

. "/var/log/httpd/error_log"
[Wed May 01 18:18:13.050768 2019] [core:notice] [pid 11416] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Wed May 01 18:18:13.053282 2019] [suexec:notice] [pid 11416] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[We May 01 18:18:16.238779 2019] [ssl:emerg] [pid 11416] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
. " /var/log/httpd/ssl_error_log"
[Wed May 01 18:18:16.238749 2019] [ssl:emerg] [pid 11416] AH01895: Unable to configure verify locations for client authentication
centos apache-2.4 centos7 authentication httpd
|
show 1 more comment
CentOS 7 | Apache 2.4.6
I have built a private Certificate Authority (CA) and two certificates (one for the server and one for a client).
Then, I configured the Apache to use the certificate X.509 in order to answer HTTPS connections, and everything went fine (I saw it in the browser).
Then, when I was configuring the Client Authentication, restarted the server and got the following error:
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
Now it appears "Syntax OK" but I still can't start the server, getting the following errors, using the commands:
. systemctl status httpd.service
[root@localhost ~]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2019-05-01 18:35:40 WEST; 2min 3s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 12292 ExecStop=/bin/kill -WINCH $MAINPID (code=exited, status=1/FAILURE)
Process: 12288 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 12288 (code=exited, status=1/FAILURE)
May 01 18:35:37 src_ca systemd[1]: Starting The Apache HTTP Server...
May 01 18:35:40 src_ca systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
May 01 18:35:40 src_ca kill[12292]: kill: cannot find process ""
May 01 18:35:40 src_ca systemd[1]: httpd.service: control process exited, code=exited status=1
May 01 18:35:40 src_ca systemd[1]: Failed to start The Apache HTTP Server.
May 01 18:35:40 src_ca systemd[1]: Unit httpd.service entered failed state.
May 01 18:35:40 src_ca systemd[1]: httpd.service failed.
."journalctl -xe"
May 01 18:39:16 src_ca polkitd[2607]: Registered Authentication Agent for unix-process:12474:9099194 (system bus name :1.157 [/usr/bin/pkttyagent --notify-fd 5 --fallba
May 01 18:39:16 src_ca systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
May 01 18:39:18 src_ca systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
May 01 18:39:18 src_ca kill[12483]: kill: cannot find process ""
May 01 18:39:18 src_ca systemd[1]: httpd.service: control process exited, code=exited status=1
May 01 18:39:18 src_ca systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
May 01 18:39:18 src_ca systemd[1]: Unit httpd.service entered failed state.
May 01 18:39:18 src_ca systemd[1]: httpd.service failed.
May 01 18:39:18 src_ca polkitd[2607]: Unregistered Authentication Agent for unix-process:12474:9099194 (system bus name :1.157, object path /org/freedesktop/PolicyKit1/
I'll leave bellow the process that I have used to configure the Client Authentication. I'll leave some useful files at the bottom of the question.
Procedure to configure the Client Authentication
Started by locating the option "SSLCACertificateFile" in the file “/etc/httpd/conf.d/ssl.conf”:
vi +/SSLCACertificateFile /etc/httpd/conf.d/ssl.conf
Updated the path to:
/etc/pki/CA/certs/ca.crt
This is the location of the certificate for the CA.
To note: The certificate of the client is inside the folder /etc/pki/CA/certs. I am not sure if this causes any problem when configuring the Client Authentication. (Update: Edit 1)
Removed the "#" on the directive "SSLVerifyClient require".
Saved the changed and exited the file with
:wqand then restarted the server:systemctl restart httpd
Useful Files for debug
. "etc/hosts" (Adding the IP + Host)

. "/etc/hostname" (Can be done with hostnamectl set-hostname new-hostname)

. "etc/httpd/conf/httpd.conf"

. "/etc/httpd/conf.d/ssl.conf"

. "/var/log/httpd/error_log"
[Wed May 01 18:18:13.050768 2019] [core:notice] [pid 11416] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Wed May 01 18:18:13.053282 2019] [suexec:notice] [pid 11416] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[We May 01 18:18:16.238779 2019] [ssl:emerg] [pid 11416] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
. " /var/log/httpd/ssl_error_log"
[Wed May 01 18:18:16.238749 2019] [ssl:emerg] [pid 11416] AH01895: Unable to configure verify locations for client authentication
centos apache-2.4 centos7 authentication httpd
So did you try doing what the error message told you to do?
– Jenny D
May 1 at 15:51
1
Also, please don't paste a picture of the terminal output. Use copy and paste to paste the actual text instead, using the code formatting option.
– Jenny D
May 1 at 15:51
@JennyD I just updated the answer. TheServerNameproblem was solved, but I still have problems starting the server. Check the Edit 3.
– Goncalo Peres
May 1 at 16:07
@JennyD the question is more clean now, thank you for your feedback.
– Goncalo Peres
May 1 at 17:44
What have you setSSLCACertificateFileto? The post says you edited the setting, but it does not say what you changed it to.
– Michael Hampton♦
May 1 at 17:50
|
show 1 more comment
CentOS 7 | Apache 2.4.6
I have built a private Certificate Authority (CA) and two certificates (one for the server and one for a client).
Then, I configured the Apache to use the certificate X.509 in order to answer HTTPS connections, and everything went fine (I saw it in the browser).
Then, when I was configuring the Client Authentication, restarted the server and got the following error:
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
Now it appears "Syntax OK" but I still can't start the server, getting the following errors, using the commands:
. systemctl status httpd.service
[root@localhost ~]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2019-05-01 18:35:40 WEST; 2min 3s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 12292 ExecStop=/bin/kill -WINCH $MAINPID (code=exited, status=1/FAILURE)
Process: 12288 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 12288 (code=exited, status=1/FAILURE)
May 01 18:35:37 src_ca systemd[1]: Starting The Apache HTTP Server...
May 01 18:35:40 src_ca systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
May 01 18:35:40 src_ca kill[12292]: kill: cannot find process ""
May 01 18:35:40 src_ca systemd[1]: httpd.service: control process exited, code=exited status=1
May 01 18:35:40 src_ca systemd[1]: Failed to start The Apache HTTP Server.
May 01 18:35:40 src_ca systemd[1]: Unit httpd.service entered failed state.
May 01 18:35:40 src_ca systemd[1]: httpd.service failed.
."journalctl -xe"
May 01 18:39:16 src_ca polkitd[2607]: Registered Authentication Agent for unix-process:12474:9099194 (system bus name :1.157 [/usr/bin/pkttyagent --notify-fd 5 --fallba
May 01 18:39:16 src_ca systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
May 01 18:39:18 src_ca systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
May 01 18:39:18 src_ca kill[12483]: kill: cannot find process ""
May 01 18:39:18 src_ca systemd[1]: httpd.service: control process exited, code=exited status=1
May 01 18:39:18 src_ca systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
May 01 18:39:18 src_ca systemd[1]: Unit httpd.service entered failed state.
May 01 18:39:18 src_ca systemd[1]: httpd.service failed.
May 01 18:39:18 src_ca polkitd[2607]: Unregistered Authentication Agent for unix-process:12474:9099194 (system bus name :1.157, object path /org/freedesktop/PolicyKit1/
I'll leave bellow the process that I have used to configure the Client Authentication. I'll leave some useful files at the bottom of the question.
Procedure to configure the Client Authentication
Started by locating the option "SSLCACertificateFile" in the file “/etc/httpd/conf.d/ssl.conf”:
vi +/SSLCACertificateFile /etc/httpd/conf.d/ssl.conf
Updated the path to:
/etc/pki/CA/certs/ca.crt
This is the location of the certificate for the CA.
To note: The certificate of the client is inside the folder /etc/pki/CA/certs. I am not sure if this causes any problem when configuring the Client Authentication. (Update: Edit 1)
Removed the "#" on the directive "SSLVerifyClient require".
Saved the changed and exited the file with
:wqand then restarted the server:systemctl restart httpd
Useful Files for debug
. "etc/hosts" (Adding the IP + Host)

. "/etc/hostname" (Can be done with hostnamectl set-hostname new-hostname)

. "etc/httpd/conf/httpd.conf"

. "/etc/httpd/conf.d/ssl.conf"

. "/var/log/httpd/error_log"
[Wed May 01 18:18:13.050768 2019] [core:notice] [pid 11416] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Wed May 01 18:18:13.053282 2019] [suexec:notice] [pid 11416] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[We May 01 18:18:16.238779 2019] [ssl:emerg] [pid 11416] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
. " /var/log/httpd/ssl_error_log"
[Wed May 01 18:18:16.238749 2019] [ssl:emerg] [pid 11416] AH01895: Unable to configure verify locations for client authentication
centos apache-2.4 centos7 authentication httpd
CentOS 7 | Apache 2.4.6
I have built a private Certificate Authority (CA) and two certificates (one for the server and one for a client).
Then, I configured the Apache to use the certificate X.509 in order to answer HTTPS connections, and everything went fine (I saw it in the browser).
Then, when I was configuring the Client Authentication, restarted the server and got the following error:
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
Now it appears "Syntax OK" but I still can't start the server, getting the following errors, using the commands:
. systemctl status httpd.service
[root@localhost ~]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2019-05-01 18:35:40 WEST; 2min 3s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 12292 ExecStop=/bin/kill -WINCH $MAINPID (code=exited, status=1/FAILURE)
Process: 12288 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 12288 (code=exited, status=1/FAILURE)
May 01 18:35:37 src_ca systemd[1]: Starting The Apache HTTP Server...
May 01 18:35:40 src_ca systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
May 01 18:35:40 src_ca kill[12292]: kill: cannot find process ""
May 01 18:35:40 src_ca systemd[1]: httpd.service: control process exited, code=exited status=1
May 01 18:35:40 src_ca systemd[1]: Failed to start The Apache HTTP Server.
May 01 18:35:40 src_ca systemd[1]: Unit httpd.service entered failed state.
May 01 18:35:40 src_ca systemd[1]: httpd.service failed.
."journalctl -xe"
May 01 18:39:16 src_ca polkitd[2607]: Registered Authentication Agent for unix-process:12474:9099194 (system bus name :1.157 [/usr/bin/pkttyagent --notify-fd 5 --fallba
May 01 18:39:16 src_ca systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
May 01 18:39:18 src_ca systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
May 01 18:39:18 src_ca kill[12483]: kill: cannot find process ""
May 01 18:39:18 src_ca systemd[1]: httpd.service: control process exited, code=exited status=1
May 01 18:39:18 src_ca systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
May 01 18:39:18 src_ca systemd[1]: Unit httpd.service entered failed state.
May 01 18:39:18 src_ca systemd[1]: httpd.service failed.
May 01 18:39:18 src_ca polkitd[2607]: Unregistered Authentication Agent for unix-process:12474:9099194 (system bus name :1.157, object path /org/freedesktop/PolicyKit1/
I'll leave bellow the process that I have used to configure the Client Authentication. I'll leave some useful files at the bottom of the question.
Procedure to configure the Client Authentication
Started by locating the option "SSLCACertificateFile" in the file “/etc/httpd/conf.d/ssl.conf”:
vi +/SSLCACertificateFile /etc/httpd/conf.d/ssl.conf
Updated the path to:
/etc/pki/CA/certs/ca.crt
This is the location of the certificate for the CA.
To note: The certificate of the client is inside the folder /etc/pki/CA/certs. I am not sure if this causes any problem when configuring the Client Authentication. (Update: Edit 1)
Removed the "#" on the directive "SSLVerifyClient require".
Saved the changed and exited the file with
:wqand then restarted the server:systemctl restart httpd
Useful Files for debug
. "etc/hosts" (Adding the IP + Host)

. "/etc/hostname" (Can be done with hostnamectl set-hostname new-hostname)

. "etc/httpd/conf/httpd.conf"

. "/etc/httpd/conf.d/ssl.conf"

. "/var/log/httpd/error_log"
[Wed May 01 18:18:13.050768 2019] [core:notice] [pid 11416] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Wed May 01 18:18:13.053282 2019] [suexec:notice] [pid 11416] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[We May 01 18:18:16.238779 2019] [ssl:emerg] [pid 11416] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
. " /var/log/httpd/ssl_error_log"
[Wed May 01 18:18:16.238749 2019] [ssl:emerg] [pid 11416] AH01895: Unable to configure verify locations for client authentication
centos apache-2.4 centos7 authentication httpd
centos apache-2.4 centos7 authentication httpd
edited May 1 at 17:53
Goncalo Peres
asked May 1 at 12:24
Goncalo PeresGoncalo Peres
135119
135119
So did you try doing what the error message told you to do?
– Jenny D
May 1 at 15:51
1
Also, please don't paste a picture of the terminal output. Use copy and paste to paste the actual text instead, using the code formatting option.
– Jenny D
May 1 at 15:51
@JennyD I just updated the answer. TheServerNameproblem was solved, but I still have problems starting the server. Check the Edit 3.
– Goncalo Peres
May 1 at 16:07
@JennyD the question is more clean now, thank you for your feedback.
– Goncalo Peres
May 1 at 17:44
What have you setSSLCACertificateFileto? The post says you edited the setting, but it does not say what you changed it to.
– Michael Hampton♦
May 1 at 17:50
|
show 1 more comment
So did you try doing what the error message told you to do?
– Jenny D
May 1 at 15:51
1
Also, please don't paste a picture of the terminal output. Use copy and paste to paste the actual text instead, using the code formatting option.
– Jenny D
May 1 at 15:51
@JennyD I just updated the answer. TheServerNameproblem was solved, but I still have problems starting the server. Check the Edit 3.
– Goncalo Peres
May 1 at 16:07
@JennyD the question is more clean now, thank you for your feedback.
– Goncalo Peres
May 1 at 17:44
What have you setSSLCACertificateFileto? The post says you edited the setting, but it does not say what you changed it to.
– Michael Hampton♦
May 1 at 17:50
So did you try doing what the error message told you to do?
– Jenny D
May 1 at 15:51
So did you try doing what the error message told you to do?
– Jenny D
May 1 at 15:51
1
1
Also, please don't paste a picture of the terminal output. Use copy and paste to paste the actual text instead, using the code formatting option.
– Jenny D
May 1 at 15:51
Also, please don't paste a picture of the terminal output. Use copy and paste to paste the actual text instead, using the code formatting option.
– Jenny D
May 1 at 15:51
@JennyD I just updated the answer. The
ServerName problem was solved, but I still have problems starting the server. Check the Edit 3.– Goncalo Peres
May 1 at 16:07
@JennyD I just updated the answer. The
ServerName problem was solved, but I still have problems starting the server. Check the Edit 3.– Goncalo Peres
May 1 at 16:07
@JennyD the question is more clean now, thank you for your feedback.
– Goncalo Peres
May 1 at 17:44
@JennyD the question is more clean now, thank you for your feedback.
– Goncalo Peres
May 1 at 17:44
What have you set
SSLCACertificateFile to? The post says you edited the setting, but it does not say what you changed it to.– Michael Hampton♦
May 1 at 17:50
What have you set
SSLCACertificateFile to? The post says you edited the setting, but it does not say what you changed it to.– Michael Hampton♦
May 1 at 17:50
|
show 1 more comment
1 Answer
1
active
oldest
votes
I have used a certificate built on another context, restarted Apache, the errors were not showing.
That means the error must be with the certificate.
Given that, I re-watched carefully the procedure that I have used to build the CA (I'll add the procedure at the bottom of this answer) and found the error.
I was using the "temporary" certificate instead of cacert.pem.
Procedure to create the CA:
openssl genrsa -des3 -out /etc/pki/CA/private/cakey.pemopenssl req -new -key /etc/pki/CA/private/cakey.pem -out /etc/pki/CA/ca.crtopenssl x509 -req -days 100 -in ca.crt -out cacert.pem -signkey private/cakey.pem
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f965414%2ffailed-to-start-apache-server-after-configuring-client-authentication%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I have used a certificate built on another context, restarted Apache, the errors were not showing.
That means the error must be with the certificate.
Given that, I re-watched carefully the procedure that I have used to build the CA (I'll add the procedure at the bottom of this answer) and found the error.
I was using the "temporary" certificate instead of cacert.pem.
Procedure to create the CA:
openssl genrsa -des3 -out /etc/pki/CA/private/cakey.pemopenssl req -new -key /etc/pki/CA/private/cakey.pem -out /etc/pki/CA/ca.crtopenssl x509 -req -days 100 -in ca.crt -out cacert.pem -signkey private/cakey.pem
add a comment |
I have used a certificate built on another context, restarted Apache, the errors were not showing.
That means the error must be with the certificate.
Given that, I re-watched carefully the procedure that I have used to build the CA (I'll add the procedure at the bottom of this answer) and found the error.
I was using the "temporary" certificate instead of cacert.pem.
Procedure to create the CA:
openssl genrsa -des3 -out /etc/pki/CA/private/cakey.pemopenssl req -new -key /etc/pki/CA/private/cakey.pem -out /etc/pki/CA/ca.crtopenssl x509 -req -days 100 -in ca.crt -out cacert.pem -signkey private/cakey.pem
add a comment |
I have used a certificate built on another context, restarted Apache, the errors were not showing.
That means the error must be with the certificate.
Given that, I re-watched carefully the procedure that I have used to build the CA (I'll add the procedure at the bottom of this answer) and found the error.
I was using the "temporary" certificate instead of cacert.pem.
Procedure to create the CA:
openssl genrsa -des3 -out /etc/pki/CA/private/cakey.pemopenssl req -new -key /etc/pki/CA/private/cakey.pem -out /etc/pki/CA/ca.crtopenssl x509 -req -days 100 -in ca.crt -out cacert.pem -signkey private/cakey.pem
I have used a certificate built on another context, restarted Apache, the errors were not showing.
That means the error must be with the certificate.
Given that, I re-watched carefully the procedure that I have used to build the CA (I'll add the procedure at the bottom of this answer) and found the error.
I was using the "temporary" certificate instead of cacert.pem.
Procedure to create the CA:
openssl genrsa -des3 -out /etc/pki/CA/private/cakey.pemopenssl req -new -key /etc/pki/CA/private/cakey.pem -out /etc/pki/CA/ca.crtopenssl x509 -req -days 100 -in ca.crt -out cacert.pem -signkey private/cakey.pem
answered May 1 at 22:51
Goncalo PeresGoncalo Peres
135119
135119
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f965414%2ffailed-to-start-apache-server-after-configuring-client-authentication%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
So did you try doing what the error message told you to do?
– Jenny D
May 1 at 15:51
1
Also, please don't paste a picture of the terminal output. Use copy and paste to paste the actual text instead, using the code formatting option.
– Jenny D
May 1 at 15:51
@JennyD I just updated the answer. The
ServerNameproblem was solved, but I still have problems starting the server. Check the Edit 3.– Goncalo Peres
May 1 at 16:07
@JennyD the question is more clean now, thank you for your feedback.
– Goncalo Peres
May 1 at 17:44
What have you set
SSLCACertificateFileto? The post says you edited the setting, but it does not say what you changed it to.– Michael Hampton♦
May 1 at 17:50