📎 AI Summary:
The thread discusses a challenging issue involving XML signature validation using CryptXml in native C++, where the original poster struggles to extract key information and convert an XML string into a BCRYPT_KEY_HANDLE for signature verification. A responder clarifies that the SignedXml class does not support RSA and suggests a relevant PowerShell script for verifying XML signatures with a PEM certificate. Overall, the conversation points to difficulties with native C++ implementation and hints at alternative approaches using C# or PowerShell.

DexterWoo

Well-Known Member
Member details
Joined
Jan 25, 2017
Messages
5
Thread Author #1
Hi Guys,

I got a really tricky problem from my work. I am doing a xml signature validation with CryptXml in native C++.
I got this signed xml,, I can't retrieve the key info from it using cryptxml API.
there's a solution using signedXml with C#, it validates the file with a rsakey loaded from xml string.
I thought my code will work if I would be able to load a xml string and convert it to BCRYPT_KEY_HANDLE, then I will be able to validate the signature of the xml file using CryptXmlVerifySignature. but I am stucked with this, I am not able to find the api to load a xml public key and generate BCRYPT_KEY_HANDLE.
can you help me on this~

Thank you.