No, it would not work that way. You have to go one level bellow that
and manually construct xmlsec Key object (with KeyData) from the
openssl key handle and then manually add key to the manager.

Aleksey

zze-CIA BENARD C ext RD-MAPS-LAN wrote:
Hi all,

I'm trying to adapt an existing library (already using xmlsec-openssl) in using a CHIL engine. The actual code calls

xmlSecCryptoAppKeyLoad(private_key_file, xmlSecKeyDataFormatPem, NULL, NULL, NULL)
and then
xmlSecDSigCtxSign


Which value should I set in the second parameter of xmlSecCryptoAppKeyLoad to identify the correct format of the "key ID" . It's not a PEM, nor a CERT, it's an ID corresponding to the private_key stored in the Ncipher hardware… I feel lost :'(, in the same way the first parameter <private_key_file> describes the valuer of the ID, not a file.


Many thanks in advance


--
Cyrille Bénard


------------------------------------------------------------------------

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

Reply via email to