Unable to establish FTPS connection with curl: "wrong version number" error across all TLS versions
1
vote
1
answer
3784
views
I've looked at the related issues, but none of them have solved my issue.
I'm trying to transfer files via FTP using
curl
to a server in my DMZ from an FTPS server on an EC2 server running vsftpd
.
$ curl ftps://ec2-myserver.compute.amazonaws.com --verbose --tlsv1.1
* Rebuilt URL to: ftps://ec2-myserver.us-east-2.compute.amazonaws.com/
* Trying ip_addr...
* TCP_NODELAY set
* Connected to ec2-myserver.us-east-2.compute.amazonaws.com (ip_addr) port ---- (#0)
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.1 (OUT), TLS handshake, Client hello (1):
* error:1408F10B:SSL routines:ssl3_get_record:wrong version number
* Closing connection 0
I can get the file connection FTPS from Filezilla on a Windows server.
I am getting the same error in every TLS version.
I've tried enabling ssl3 on the vsfpd
server, but it didn't solve it.
Asked by kroov
(79 rep)
Jan 30, 2020, 01:17 PM
Last activity: Jul 3, 2025, 10:02 PM
Last activity: Jul 3, 2025, 10:02 PM