cURL
Haxx ad
libcurl
Automatically get a mirror near you





COMPARE PRICES:
Digital cameras, MP3 Players, Camcorders, Mobile phones, PDA, Computers, Electronics LCD monitors, Printers, Notebook, DVD Players, Motherboards, TV, ipod, Processors. See all...

Shopping cart software
Online collaboration software

SourceForge.net Logo

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: Digital Certificates

From: Cris Bailiff <c.bailiff+curl_at_awayweb.com>
Date: Fri, 14 Jun 2002 09:44:05 +1000

>On Thu, 13 Jun 2002 07:22, Steven R. Shourds wrote:
> I cannot seem to get curl to use my digital certificate that I exported.
> The url is correct in the example below. I am just not showing all of it.
>
> Example:
>
> curl -v -o matcat -E PerfProdPrivate.pfx https://52.128.224.9...
> curl: (35) unable to set certificate file (wrong password?)
>
> What am I doing wrong?

(I'm assuming you obtained your .pfx file from some Windows application, such
as IE or Lookout.) The .pfx format is not PEM format. It's basically pkcs12
format, with some embrace and extend on top.

You can turn it into a PEM file containing the key and certificate chain
using openssl:

openssl pkcs12 -in PerfProdPrivate.pfx -out PerfProdPrivate.pem

Add the flag '-nodes' if you don't want the PEM file to have a passphrase.
You'll need the export password you supplied when you extracted the .pfx file.

Cris

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
Received on 2002-06-14

These mail archives are generated by hypermail.

donate! Page updated October 16, 2006.
web site info