[
https://issues.apache.org/jira/browse/DIRAPI-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emmanuel Lecharny updated DIRAPI-91:
------------------------------------
Fix Version/s: 1.0.0-M13
> Use SUN default TrustManager
> ----------------------------
>
> Key: DIRAPI-91
> URL: https://issues.apache.org/jira/browse/DIRAPI-91
> Project: Directory Client API
> Issue Type: Improvement
> Affects Versions: 1.0.0-M11, 1.0.0-M12
> Reporter: Raphaƫl Ouazana
> Assignee: Kiran Ayyagari
> Fix For: 1.0.0-M13
>
>
> I want to connect to an OpenLDAP directory with LDAPS.
> With JNDI, I just need to modify the common keystore, or to add a specific
> one with javax.net.ssl.trustStore.
> With DIRAPI, I need to provide a TrustManager (which I eventually can
> initialize with SUN one).
> I suggest to initialize the default TrustManager to SUN one. This can be done
> in LdapConnectionConfig by replacing:
> TrustManagerFactory tmFactory = TrustManagerFactory.getInstance(
> trustMgmtAlgo );
> tmFactory.init( KeyStore.getInstance( KeyStore.getDefaultType() )
> );
> with:
> TrustManagerFactory tmFactory =
> TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
> tmFactory.init((KeyStore)null);
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)