cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Error 58 unable to set private key file

From: The PayPerPhone company; Willem Blok <Willem.Blok_at_payperphone.nl>
Date: Thu, 14 Dec 2006 13:11:10 +0100

Tried every tip with succes.

Using CURLlib 7.12 and 7.16 with PhP 5.1.6 on Redhat ES

 

When using CURL all works fine, however with Curllib not

Certs are open SSL selfsigned 1024

curl_setopt( $ch, CURLOPT_URL, $url->ToString() );

  curl_setopt( $ch, CURLOPT_USERAGENT, "PHP" );

  curl_setopt( $ch, CURLOPT_HEADER, 0 );

  curl_setopt( $ch, CURLOPT_PORT, 9443 );

  curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );

  curl_setopt( $ch, CURLOPT_TIMEOUT, $connectTimeout );

   curl_setopt( $ch, CURLOPT_POST, 1 );

   curl_setopt( $ch, CURLOPT_POSTFIELDS, $paramUrl->ParamString() );

    curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, 1 );

    curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, 2 );

    curl_setopt( $ch, CURLOPT_SSLVERSION, 3 );

    curl_setopt( $ch, CURLOPT_CAINFO, $caFile );

    curl_setopt( $ch, CURLOPT_SSLCERT, $pemFile );

 

this is the error;

chErrNo: 58 chErrStr: unable to set private key file:
'/path/ifs101_client.pem' type PEM

 

 

Willem Blok
.

 

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2006-12-14