cURL / Mailing Lists / curl-users / Single Mail


Error connecting with curl

From: Perrin, Brandon S <>
Date: Tue, 05 Jun 2007 14:55:01 -0400

Have been unable to find a cause and solution for the following issue.


We have an automated job running on an HP Unix B.11.11 server using the
cURL command line tool version 7.15.1


About a month ago the server we were connecting to moved. After this
migration we started seeing the following error when trying to make a
connection and upload a file.


curl: (35) error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong


The syntax I am using to upload the file is :


curl -v --ftp-ssl -1 -k --user <UserID>:<password>
ftp://<ServerIPAddress> -T test.txt


and the verbose log shows the following :


* About to connect() to <IP Address> port 21

* Trying <IP Address>... connected

* Connected to <IPAddress> (<IP Address>) port 21

< 220 ProFTPD 1.2.10 Server (SelectMinds Secure FTPd) []


< 234 AUTH SSL successful

* successfully set certificate verify locations:

* CAfile: /opt/iexpress/curl/share/curl/curl-ca-bundle.crt

  CApath: none

* SSLv3, TLS handshake, Client hello (1):

SSLv3, TLS handshake, Server hello (2):

SSLv3, TLS handshake, CERT (11):

SSLv3, TLS alert, Server hello (2):

error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag

* Closing connection #0


curl: (35) error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong


Any information on what is causing this issue would be appreciated.





Brandon Perrin

Gateway Exchange Services

Systems & Process Management

Corporate Shared Services

Lockheed Martin


Received on 2007-06-05