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

curl-and-php

Re: Error code 58: unable to set private key file?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 8 Jan 2009 13:29:49 +0100 (CET)

On Wed, 7 Jan 2009, Dan Brown wrote:

> curl_setopt($ch, CURLOPT_SSLCERT, getcwd() .'/site-dev.crt');
>
> I do realize of course it is asking for a private key, so is there a way to
> get it to use the public key instead?

No. When you use a client certificate, you always also provide a private key
(and the associated passphrase for it). There's no escape from that.

-- 
  / daniel.haxx.se
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2009-01-08