cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: HTTPS Post and certificates

From: Clayton, Richard <richard.clayton_at_office2office.biz>
Date: Wed, 3 Sep 2003 10:40:44 +0100

Thanks Goetz,

My customer, the people wanting to me to post to them, have changed their
requirement and so my error has changed.

Now:
        curl -F "fileName=@C:\file.txt" -u username:password
"https://destination.com"

gives curl: (60) SSL certificate problem, verify that the CA cert is OK

using

   curl -k -F "fileName=@C:\file.txt" -u username:password
"https://destination.com"

gives curl: (35) SSL: error:14094412:SSL routines:SSL3_READ_BYTES:sslv3
alert bad certificate

I assume the problems are all at the remote server end?

Regards,

Richard

> -----Original Message-----
> From: Götz Babin-Ebell [SMTP:babin-ebell_at_trustcenter.de]
> Sent: Tuesday, September 02, 2003 9:23 PM
> To: curl-users_at_lists.sourceforge.net
> Subject: Re: HTTPS Post and certificates
>
> Hello Richard,
>
> Clayton, Richard wrote:
> > Can anyone see anything wrong with this
> >
> > curl -F "fileName=@C:\file.txt" -u username:password --cert
> > certificate-name.com:password --cert-type pem --cacert fred.pem
> > "https://destination.com"
>
> Please:
> in which file is your client certificate ?
>
> to clarify the situation:
> could you change the line to:
>
> curl -F "fileName=@C:\file.txt" -u username:password \
> --cert certificate-name.com --cert-type pem \
> --pass password \
> --key certificate-name.com --key-type pem \
> --cacert fred.pem "https://destination.com"
>
> At the moment I'm to lazy to look in the source,
> but the order of --pass and --key shouldn't matter...
>
> BTW: pem is default,so you can omit the --*-type pem...
>
> Bye
>
> Goetz
>
> --
> Goetz Babin-Ebell, TC TrustCenter AG, http://www.trustcenter.de
> Sonninstr. 24-28, 20097 Hamburg, Germany
> Tel.: +49-(0)40 80 80 26 -0, Fax: +49-(0)40 80 80 26 -126

**********************************************************************************
This message is sent in strict confidence for the addressee only. It may
contain legally privileged information. The contents are not to be disclosed
to anyone other than the addressee. Unauthorised recipients are requested
to preserve this confidentiality and to advise the sender immediately of any
error in transmission.
This footnote also confirms that this email message has been swept for the
presence of computer viruses, however we cannot guarantee that this message
is free from such problems.
**********************************************************************************

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-04