How to make a 64 byte signed hash of a string with .pfx file in .NET

Hello,

I am using .NET.
I need an example code, that I can use to sign a hash of a string with a certificate in .pfx file, and then to verify it. The signed hash must be 64 bytes. I can't use CAPICOM, because it generates a signature that includes the certificate in it, so it becomes too long.

Thanks,
Alex
Alex7777qqAsked:
Who is Participating?
 
tnapolitanoConnect With a Mentor Commented:
I see that your requirement is not to use CAPICOM, but have you tried "Sign Tool" (SignTool.exe).

SignTool
http://msdn2.microsoft.com/en-us/library/8s9b9yaz.aspx

How sign the code by own certificate and install the certificate on device
http://www.codeproject.com/useritems/signcode.asp

0
 
Alex7777qqAuthor Commented:
I would like to do the signing with code, not manually.
0
 
tnapolitanoCommented:

Am I missing something, Alex? SignTool.exe is a command line tool. That means it CAN be scripted. In fact the whole Code Project article pretty much shows you how to do it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.