A trusted certificate KeyStore may be used to determine whether a given certificate chain can be trusted.
Set the trusted certificate KeyStore.paramtrustStore the trusted certificate KeyStore, which must already be loaded. setTrustStore(trustStore);
setTrustStore(trustStore);