Sample Header Ad - 728x90

Connect with curl to FTPS server and download file

2 votes
2 answers
6465 views
I'm able to connect to my FTPS server with TLS1.2 by curl, using --cert, --key and --cacert files. The command looks like: curl -3 -k -v --ftp-ssl --tlsv1.2 --ftp-ssl-reqd --ftp-pasv --verbose \ --ssl \ --cert ./cert.pem \ --cert-type PEM \ --key ./cert.key \ --key-type PEM \ --cacert ./cacert \ ftp://user:pass@10.10.100.1/file.txt I see the contents of file.txt appear in the output of the command but I don't actually see the file being saved anywhere. Am I missing another argument in my curl command? I have not been able to find it yet.
Asked by stdcerr (2099 rep)
May 22, 2021, 05:52 PM
Last activity: May 22, 2021, 06:20 PM