lamp

Keyset does not exists

Published 29 March 07 12:00 PM | Frederick.Chapleau

When calling the CreateSignature Method on the SHA1 PKCS #1 Signature Formatter, I got the "Keyset does not exist."

This was caused after converting a 1.1 c# .NET web application to 2.0. The problem is that all the information that I could find were related to the Cerficate Store security and I was using a private SNK file that was just an embedded resource.

BUT the problem was not related! SN, that I was using to generate the Key Pair changes between both versions and the new format was not able to be read by the Framework. The solutions was simply to regenerate the certificate with the SN from .NET framework 1.1.

CORRECTION: The problem is still produced even if I thinked that it was the fault of Vista, .NET 2.0 etc. Maybe the new SNK generator, generates differents Keys when the 2.0 .NET framework is installed, I did not tried on a XP machine.

-f.

Filed under:

Comments

No Comments

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Protected by FormShield
Refresh
Listen
Please enter the characters shown on the image


Code: