curl returns Error 56 and SSL read: errno -12205 when using FTPS

Solution Verified - Updated -

Issue

  • curl returns Error 56 and SSL read: errno -12205 when using FTPS
  • When using curl to transfer files with SSL, curl returns error 56 with no directory listings but any file transfers appear to complete successfully.
$ curl --cert /home/username/ssl_keys/cert.crt:'password' \
       --key /home/username/ssl_keys/cert.key \
       --user username":"password -k -P "10.0.0.1" \
       --ftp-ssl-reqd  -l ftp://ftps.example.com/
curl: (56) bind(port=0) failed: Cannot assign requested address

Environment

  • Red Hat Enterprise Linux 6.1 to 6.4
  • curl-7.19.7-26.el6_2.4
  • libcurl-7.19.7-26.el6_2.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content