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

curl-and-php

RE: curl-and-php Digest, Vol 3, Issue 10

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 11 Nov 2005 23:32:10 +0100 (CET)

On Fri, 11 Nov 2005, Josh McKenney wrote:

>> The "no key" part being the key (no pun intended). You should set the path
>> to your private key as well (and the key for it).
>
> You mentioned the private key... However, when I put the exact same code
> onto my 1and1.com hosting account, it works fine. Does that mean that
> 1and1.com has the private key and curl sees it automatically? That couldn't
> be... right?

No, it sounds insane but I simply cannot explain it. Are you saying that you
have to use CURLOPT_SSLCERT on the 1and1.com version as well?

> again: here's the code I'm trying to run... The only part that doesn't work
> is the CURLOPT_SSLCERT:
>
> $ch = curl_init();
> curl_setopt($ch, CURLOPT_URL,"https://api.sandbox.paypal.com/2.0/");
> curl_setopt($ch, CURLOPT_SSLCERT, $sslcertpath);
> curl_setopt($ch, CURLOPT_POSTFIELDS, $SOAPrequest);

As I've understood these things, client certificates are always used in
combination with your private key.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2005-11-11