yammer / dropwizard-auth-ldap

Dropwizard Authentication Module for LDAP using JNDI.
Apache License 2.0
36 stars 17 forks source link

Trusting all SSL certificates #6

Closed mdprasadeng closed 9 years ago

mdprasadeng commented 9 years ago

Hey,

I need to access our internal LDAP server and hence want to switch trust all connections as the current certificate is causing issues (tried adding it as certificate via keytool too).

There are ways to set trust all connections for HTTPS protocol, can someone help in doing the same for ldaps ?

Regards, Durga

chrisgray commented 9 years ago

After you've added the certificate to the keystore/truststore. Are you also making sure that the JVM leverages this new store?

            -Djavax.net.ssl.keyStore=path/to/your/keystore
            -Djavax.net.ssl.keyStorePassword=keystore-password
            -Djavax.net.ssl.trustStore=path/to/your/keystore
            -Djavax.net.ssl.trustStorePassword=keystore-password