Results 1 to 1 of 1
Thread: PHP Curl SSL Request
Apr 27, 2009, 03:48 #1
- Join Date
- Jun 2008
- 0 Post(s)
- 0 Thread(s)
PHP Curl SSL Request
I have two virtual hosts and SSL is configured on both of these servers. Both these servers have their own .key (private key) and .crt (public key) files.
I need to send a curl request from PHP script on server 1 to PHP Script on server 2 and I need to use HTTPS for this curl request.
The public key (.crt file) is shared between these two servers. When I am sending curl request from server 1 to server 2, I am getting the error below:
SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
curl_setopt( $curl, CURLOPT_SSLCERT, '/opt/certificates/server2.crt' );
unable to set private key file: '/opt/sage/certificates/AS/aspchart-server.crt' type PEM
Thanks in advance.