Apache/PHP/Symphony is being used in my middle layer for authentication and routing. A request comes through on http then if the request authenticates the person making the request is authorized then makes a call to a backend web service over https. The back end web service is over https with a self signed certificate. I can hit the backend service directly and see my certificate information via chrome inspector. When I make the request directly to the backend via the url, everything works. When I try to go through the middle layer, I get a response back that is a 504:
{"code":504,"message":"A network communication error has occurred","error":{"code":77,"message":"SSL: can\u0027t load CA certificate file \/etc\/pki\/tls\/certs\/ca-bundle.crt"}}
I generated the certificate to:
/usr/local/jboss-eap-6.4/standalone/configuration/.keystore
Using the command:
keytool -genkey -keyalg RSA -alias jboss -keystore .keystore -storepass changeit -validity 9999 -keysize 2048
I also updated my standalone.xml to reference the file via:
<ssl name="ssl" key-alias="jboss" password="changeit" certificate-key-file="/usr/local/jboss-eap-6.4/standalone/configuration/.keystore" protocol="TLSv1" verify-client="false"/>
My dev machine is OSX.
It seems that apache or symfony is looking for the cert in /etc/pki/tls/certs/ca-bundle.cert
which is a file that doesn't exist on my system. Searching for "pki" in /etc/apache2/httpd.conf
yields no results.
How do I setup apache
/symfony2
to trust this cert, or is there a different way to trust this cert more globally?