I use something like this (from Delphi):
        dwSize := 0;
        dwSize := CertNameToStr(X509_ASN_ENCODING, pCertContext^.pCertInfo^.Subject, CERT_SIMPLE_NAME_STR, nil, dwSize);
        SetLength(sCertSimpleNameStr, dwSize-1);
        CertNameToStr(X509_ASN_ENCODING, pCertContext^.pCertInfo^.Subject, CERT_SIMPLE_NAME_STR, PChar(sCertSimpleNameStr), dwSize);
 
This will work fine later with xmlSecKeysMngrFindKey. Don't know if it will help in your case though.
 
/Erik

_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to