Using openssl I have created signed document on server, kindly refer below commands for it.
------Create private key.
openssl pkcs12 -in "D:\ Issues\XML Encryption\mycredentialsandkey2010.pfx" -nodes -nocerts -out "D:\privatekey.pem" -nodes
------Create public key.
openssl rsa -in "D:\privatekey.pem" -pubout -out "D:\rsapublickey.pem"
------Create signed document.
openssl dgst -sha1 -sign "D:\privatekey.pem" -out "D:\ProductInformation_xml.cipher" "D:\ProductInformation.xml"
Now I can verify the digital signature using opensll like below
---Verify
openssl dgst -sha1 -verify "D:\rsapublickey.pem" -signature "D:\ProductInformation_xml.cipher" "D:\ProductInformation.xml"
But I need to verify digital signature using C++ & Windows API in client application (without openssl library or source code).
I know using public key & hash we can verify the digital signature.
Kindly provide me pseudo code or windows API ASAP ???
Any help is appreciated.
Sandy