Hi John
John Riley wrote:
Hi,
I browsed the documenation and found that the FTP Server supports
implicit SSL. However, after trying out the snapshot I can't get it to
work.
I'm using the following configuration with the demo keystore:
config.socket-factory.class=org.apache.ftpserver.socketfactory.SSLFtpSocketFactory
config.socket-factory.address=localhost
config.socket-factory.port=21
config.socket-factory.ssl.keystore-file=./res/.keystore
config.socket-factory.ssl.keystore-password=password
config.socket-factory.ssl.keystore-type=JKS
config.socket-factory.ssl.keystore-algorithm=SunX509
config.socket-factory.ssl.ssl-protocol=TLS
config.socket-factory.ssl.client-authentication=false
config.socket-factory.ssl.key-password=password
When configuring my client for implicit SSL I get the following error:
- Connected. Negotiating SSL session..
- SSL ERROR: unknown protocol
And when trying to connect using TLS I get the following errors.
- Connected to Localhost
- 220 Service ready for new user
- AUTH TLS
- 431 Service is unavailable.
- Failed SSL/TLS negotiation, disconnected
Except for the SSL the ftp server seems to run smoothly. Whan am I doing
wrong? Can someone please guide through this.
If you're using the latest version of trunk (or maybe 1.0-M1 release
candidate) you need to be using the listener config rather than
socket-factory. See the documentation at:
http://cwiki.apache.org/FTPSERVER/tlsssl-support.html
If that doesn't do it, please ask here again.
/niklas