FTP SSL Problem
I am having some problem coding for a FTP client which should have SSL enables (128 bit encryption) in C in visual Studio enviornment. I can connect to the FTP server not using the default port(21). But the server sends a error message 431 - Unable to negotiate secure command connection. I dont know how to begin the SSL/TLS negotiation. After the controll connnection when I am sendning the PORT ftp command the server returns error 10054. Any win32 API or a sample code will be of great help.
> I dont know how to begin the SSL/TLS negotiation
Everything to do with Internet protocols is described in RFC's
If you haven't already, get www.ethereal.com and use it to watch all the packets go by. Compare what you do with what a proper program does.
i am using openssl now and able to complete the SSL/TLS negotiation succesfully . The server responds for the first time and then send a time out error of 421.
If I use SSL_read - it times out .. but if I use recv() then send response but in encrypted format. (not printable) .. any suggestions.