Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.3k views
in Java FTP by (120 points)
When running v1.2.7 against WS_FTP Server, i am getting the following exception.

at com.enterprisedt.net.ftp.ssl.SSLFTPStandardValidator.validateServerCertificate(null:-1): The server's certificate chain is too long
at com.enterprisedt.net.ftp.ssl.B.B(null:-1): Polling Exception on connect(): The server's certificate chain is too long
at com.enterprisedt.net.ftp.ssl.B.G(null:-1):
at com.enterprisedt.net.ftp.ssl.SSLFTPClient.auth(null:-1):

WS_FTP is using the standard Verisign SSL Certificate (ie. 1 Root CA, 1 intermediate CA and then our server certificate)

Any help would be appreciated.
Thanks

1 Answer

0 votes
by (162k points)
You can make the client accept longer certificate-chain lengths by using the following code:

SSLFTPStandardValidator.MAX_CERTIFICATE_CHAIN_LENGTH = 3;

Of course you may need to increase it higher than this.

Categories

...