I am performing authentication using certificates.
A SOAP client request contains a <wsse:BinarySecurityToken> element with a certificate's Base64 ecoding besides a UsernameToken element. Based on that user, I can obtain through an LDAP search the Base64 encoding of the certificate associated to him as a binary.
Which is the best way to validate the certificate given by the client in the SOAP request with that other Base64 encoding obtained from the LDAP search? (I am using an XSLT stylesheet)