Hi All
I am working on developing a java client for FTP over SSL (explicit).
My requirement is that I should present the server certificate to the
client and once the client accepts, go thru the connection.
In this regard I am trying to get the certificate from the SSLSession.
Before doing that I need to send the "AUTH SSL" / "AUTH TLS" command
to the server. The problem here is, if I send the command over
SSLSocket, it throws an exception when I try to send the command. If I
send the command over plain Socket, this part works fine. But I am
unable to convert the plain Socket into SSLSocket and get the
SSLSession.
I hope someone can point me as to how I should do this. Or any
problems with this approach. Pl do let me know if there are any other
approaches.
Thanks
SV