Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.6k views
in Java FTP by (160 points)
In some old notes I have that the JDK comes with a default certificate store that includes Verisign. If this is true, is the SSLFTPStandardValidator.getRootCertificateStore() initialized with default certificates for the JDK allowing me to verify certificates in this chain of trust without adding to the cert store?

Brian

2 Answers

0 votes
by (162k points)
No. We'll look into this though.
0 votes
by (160 points)
This seems to work fairly well:

      String certfile = System.getProperty("java.home") + "\\lib\\security\\cacerts";
      SSLFTPClient ftp = new SSLFTPClient();
      KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());
      ks.load(new FileInputStream(certfile), null);
      ftp.getRootCertificateStore().importKeyStore(ks);


Brian

Categories

...