|Re: [virgo-dev] LDAP over SSL and keystore|
I have tried this, but still no luck. I get the same error, which is:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I will keep digging, but I hope somebody has more hints.
On 7 April 2011 06:39, Fetyko, Jan <Jan.Fetyko@xxxxxxxxxxxx> wrote:
I’m turning to the mailing list with a problem we have with one of our bundles. It is an authentication bundle that validates users against ldap. The code uses a separate keystore where the LDAP’s public key is stored. The code works perfectly in junit tests, but unfortunately in virgo 2.1 the keystore is not used for some reason. I could only get it working if I import the LDAP’s public cert into the JRE’s cacerts keystore. I even tried to put the public key into the $VIRGO/config/keystore, still no luck.
Here is the code:
ldapConnection = new LDAPConnection();
ldapConnection.bind(V3, loginDN, password);
Is there anything different in virgo than in say servlet containers that would cause this issue ?