Has any one tried to implement the CCC command in FTPS? I've been trying to do this, but having issues. I was wondering if any one has a better knowledge of what should be done to unprotect the control channel.
Here is what I've tried: 1. Added an implementation class for CCC, and registered it with the factory 2. Server receives the CCC command from the client 3. Server sends a positive reply back to the client, and waits for the message to be sent using the await() method on the future. This should ensure that the reply to CCC is still sent over the encrypted channel. 4. Server removes the SslFilter from the filter chain of the session In theory (according to my understanding) this should do the trick, but I'm seeing different results with different clients. I could not get it to work consistently with any client. I noticed that the MINA code does send a TLS_CLOSE message to the client when the SslFilter is removed (from the onPreRemoveFilter method). Is this needed on the server or should the client initiate the TLS_CLOSE sequence, by closing the SSLSocket (without closing the underlying socket)? Does SSL (SSL v2 for example) also have a special close sequence like the TLS does? I appreciate any feedback, pointers on how to get this to work. Thanks. Sai Pullabhotla
