Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.7k views
in Java FTP by (160 points)
I just downloaded the trial version of edtFTPj. I'm trying to run the example java apps, but the app fails at the AUTH step.

I know the public certificate is correct because it works with other cleints (lftp, kermit).

Is there some other configuration I need to do to get this app to work?

The commands and logs are below.

Thanks
Leon



$ javac -classpath ".:../../lib/edtftpj-ssl.jar:../../lib/license.jar" ServerValidatingClient.java

$ java -cp ".:../../lib/edtftpj-ssl.jar:../../lib/license.jar" ServerValidatingClient remote.ftp.server username password public-cert.txt


INFO [ServerValidatingClient] 18 Feb 2005 18:27:33.616 : Creating FTPS (explicit) client
INFO [com.enterprisedt.net.ftp.ssl.SSLFTPClient] 18 Feb 2005 18:27:34.902 : Licence expiry date: 31 Mar 2005
INFO [com.enterprisedt.net.ftp.ssl.SSLFTPClient] 18 Feb 2005 18:27:34.902 : Trial licence
INFO [puretls] 18 Feb 2005 18:27:35.296 : PureTLS debug level=0
INFO [ServerValidatingClient] 18 Feb 2005 18:27:35.337 : Loading server certificate from public-cert.txt
INFO [ServerValidatingClient] 18 Feb 2005 18:27:35.403 : Connecting to server remote.ftp.server
INFO [ServerValidatingClient] 18 Feb 2005 18:27:35.995 : Switching to FTPS (explicit mode)
INFO [cryptix] 18 Feb 2005 18:27:36.350 : GLOBAL_TRACE=false
INFO [cryptix] 18 Feb 2005 18:27:36.350 : GLOBAL_DEBUG=false
INFO [cryptix] 18 Feb 2005 18:27:36.351 : GLOBAL_DEBUG_SLOW=false
com.enterprisedt.net.puretls.SSLThrewAlertException: Bad certificate
at com.enterprisedt.net.puretls.SSLConn.alert(SSLConn.java:200)
at com.enterprisedt.net.puretls.SSLHandshake.recvCertificate(SSLHandshake.java:287)
at com.enterprisedt.net.puretls.SSLHandshakeClient.handshakeContinue(SSLHandshakeClient.java:116)
at com.enterprisedt.net.puretls.SSLHandshake.handshake(SSLHandshake.java:125)
at com.enterprisedt.net.puretls.SSLConn.handshake(SSLConn.java:143)
at com.enterprisedt.net.puretls.SSLSocket.handshake(SSLSocket.java:437)
at com.enterprisedt.net.ftp.ssl.B.G(Unknown Source)
at com.enterprisedt.net.ftp.ssl.SSLFTPClient.auth(Unknown Source)
at ServerValidatingClient.main(ServerValidatingClient.java:72)

3 Answers

0 votes
by (162k points)
Could you email the server cert to support at enterprisedt dot com and we'll try it out?
0 votes
by (160 points)
Could you email the server cert to support at enterprisedt dot com and we'll try it out?



It's on the way.
0 votes
by (162k points)
It looks to us as though you are trying to use the CA root certificate to do the server validation.

This won't work - you need the server's certificate, as described in

http://www.enterprisedt.com/products/ed ... eadme.html

Categories

...