cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: HTTPS Put using Curl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 20 May 2003 10:31:15 +0200 (CEST)

On Tue, 20 May 2003 anthony.2.petty_at_bt.com wrote:

> I am trying to put a file on a sever using curl when using the command
>
> curl -T <file name> -E <pemfile:password> -v <https server connection>
>
> We get the error messages below
>
> * About to connect() to xxxxxxxxx:443
> * Connected to xxxxxxxxxxxxxxxxxxx port 443
> * SSL: error:00000001:lib(0):func(0):reason(1)
> * Closing connection #0
> curl: (35) SSL: error:00000001:lib(0):func(0):reason(1)
>
> When connecting with the -k option all works ok see below, but the -k
> option is insecure and could lead to information being hacked etc..

You did read this http://curl.haxx.se/docs/sslcerts.html, right ?

> curl -T <file name> -E <pemfile:password> -v -k <https server connection>

--cacert is the option you need to use if -k is not what you want and the
default CA cert bundle doesn't work. It does of course require you to have a
local CA cert for the server.

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
Received on 2003-05-20