Please try to copy the certificates that you posted in the previous message into a text-file called something like "server-cert.pem" and then load that one using:
ftp.getRootCertificateStore().importPEMFile("server-cert.pem");
The certificates that I'm referring to are the ones starting with "-----BEGIN CERTIFICATE-----" and ending with "-----END CERTIFICATE-----".
The first one is the root certificate (from VeriSign). The second one is also from VeriSign. The third one is the one issued to the ABN Amro. You can use OpenSSL to inspect the certificates as I have just done. The command is "openssl x506 -text -in server-cert.prm", which prints out info for the first one. You'll need to split file into 3 if you want to look at each separately.
These are the actual certificates presented by the server. We sometimes find that the certificate that the user thinks the server is using is not actually the certificate that is being presented during the SSL handshake. This is why the SSLFTPCertificateException has a method for printing it out, thus allowing the developer to inspect and/or use the actual certificate presented.
Another possible issue is that there a 3 certificates presented. Try setting SSLFTPStandardValidator.MAX_CERTIFICATE_CHAIN_LENGTH to 3.
- Hans (EDT)