Skip to content

InMemory LDAP fails to read certificate when ssl.KeyManagerFactory.algorithm=PKIX is used #186

@karel-harjono

Description

@karel-harjono

Updating KeyManagerFactory algorithm to PKIX algorithm in java.security causes certificate to not be found/trusted. We found that ldapsdk logic is incompatible with PKIX-based key manager algorithm, likely due to certificate alias matching logic not accounting for PKIX-based alias prefixes (e.g. adding a debug in WrapperKeyManager.java:559 getPrivateKey() returns-> alias: 1.<cert-alias>). The prefix added by jvm PKIX algorithm causes alias to not match causing no trusted certificate exception to be thrown.

Is there a configuration to enable PKIX certificate handling by LdapSDK?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions