cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Error 35

From: Ajit, Kumar (IE10) <ajit.kumar_at_honeywell.com>
Date: Mon, 18 Mar 2002 05:11:27 -0600

dear Daniel,
I checked the path, permission, file name, etc. but things look fine. i
wrote a C program by using openSSL library APIs...and by using that program

SSL_CTX_use_PrivateKey_info(mySSLCtx,"authdata/myclient.key",SSL_FILETYPE_PE
M);
succeeds.

I am wondering what am I doing wrong!!

regards
ajit

> -----Original Message-----
> From: Daniel Stenberg [SMTP:daniel_at_haxx.se]
> Sent: Monday, March 18, 2002 3:46 PM
> To: Ajit, Kumar (IE10)
> Cc: CURL MAILING LIST
> Subject: RE: Error 35
>
> On Mon, 18 Mar 2002, Ajit, Kumar (IE10) wrote:
>
> > It says: "unable to set private key file". it appears in ssluse.c, only
> > once. it seems some problem with the file_type. Do i need to set
> something
> > else? I have created the certificate and key files by using openSSL.
>
> If the file is in PEM format, you should be OK. If you this is your case,
> you
> probably have a problem with file properties or a bad path or something.
>
> If you store it using DER format, you must first tell libcurl that with
> the
> CURLOPT_SSLKEYTYPE option.
>
> The only other (currently) recognized key format is ENG for the ENGINE
> support.
>
> --
> Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-03-18