public Builder trustCertificates(KeyStore trustStore) throws GeneralSecurityException {
  SSLContext sslContext=SslUtils.getTlsSslContext();
  SslUtils.initSslContext(sslContext,trustStore,SslUtils.getPkixTrustManagerFactory());
  return setSslSocketFactory(sslContext.getSocketFactory());
}

public Builder trustCertificates ( KeyStore trustStore ) throws GeneralSecurityException { SSLContext sslContext = SslUtils . getTlsSslContext ( ) ; SslUtils . initSslContext ( sslContext , trustStore , SslUtils . getPkixTrustManagerFactory ( ) ) ; return setSslSocketFactory ( sslContext . getSocketFactory ( ) ) ; }
sets the ssl socket factory based on a root certificate trust store .
