cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Problems connecting to a ftpserver using SSL/TLS

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 13 Feb 2009 08:17:57 +0100 (CET)

On Thu, 12 Feb 2009, Joacim Mårtensson wrote:

> I tried your suggestion but still got that annoying ASN1 error:
>
> [user@server]$ curl -v --tlsv1 --ftp-ssl -uUSER:PASS ftp://ftps.xxxx.se:21
> * About to connect() to ftps.xxxx.se port 21

> * error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
> * Closing connection #0
> curl: (35) error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
>
> I get the samething if I try using: --sslv3, and if I use --sslv2 I got
> "Unknown SSL protocol error in connection"

Googling for this specific error, I found this interesting reply (by Dan
Fandrich) to a very similar question:

         http://curl.haxx.se/mail/archive-2007-06/0014.html

Basically the advice would be to try out with a newer OpenSSL.

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-02-13