Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problems retrieving the result of a HTTPS call with cURL

Status
Not open for further replies.

AnakinPt

Programmer
Mar 29, 2001
583
PT
Hi,

I need to run a script in a https server.

I'm using cURL but it returns me: Your connection is using a weak random seed! * Closing live connection (#0)

Here is my code:


$ch=curl_init();
curl_setopt($ch,CURLOPT_VERBOSE,1);
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,$params);
curl_setopt($ch,CURLOPT_SSLCERT,"multicert.p12");
curl_setopt($ch,CURLOPT_SSLCERTPASSWD,"3I3I37RP52G1L15D8T8S");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$data = curl_exec($ch);
curl_close($ch);


Can anyone help me with this?

Thanks

Anikin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top