cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Problems connecting to a ftpserver using SSL/TLS

From: Joacim Mårtensson <jocke.martensson_at_gmail.com>
Date: Thu, 12 Feb 2009 14:38:51 +0100

Hello Daniel,

Damn you replay fast :D

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
* Trying 192.xxx.xxx.xxx... * connected
* Connected to ftps.xxxx.se (192.xxx.xxx.xxx) port 21
< 220-FTP 14:33:00 on 2009-02-12.
< 220 Connection will close if idle for more than 30 minutes.
> AUTH SSL
< 234 Security environment established - ready for negotiation
* successfully set certificate verify locations:
* CAfile: /usr/share/ssl/certs/ca-bundle.crt
  CApath: none
* 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"

/Jocke

On Thu, Feb 12, 2009 at 14:26, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Thu, 12 Feb 2009, Joacim Mårtensson wrote:
>
> curl: (35) error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
>>
>> Does anyone knows whats this means or how to troubleshoot it further?
>>
>
> I think your idea of trying to force TLSv1 is a good idea.
>
> If I try connecting with TLS I got this:
>>
>> [user@server]$ curl -v -tlsv1 -uUSERNAME:PASSWORD ftp://ftps.xxxxxx.se:21
>>
>
> Well, --tlsv1 (note the double dashes) just sets your SSL/TLS preference.
> You then need to use --ftp-ssl as well to tell curl to speak FTPS.
>
> --
>
> / 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
>
>

-- 
Mvh
Jocke
Sent from:   United Kingdom.

-------------------------------------------------------------------
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-12