Using private keys to sign hash
From: Erick Daniel Tinajero (etinajero_at_quimera.org)
Date: 11/23/04
- Next message: Mark: "Re: Adding key makes solution compile very slow"
- Previous message: Robert Hurlbut: "Re: Adding key makes solution compile very slow"
- Next in thread: Nicole Calinoiu: "Re: Using private keys to sign hash"
- Reply: Nicole Calinoiu: "Re: Using private keys to sign hash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 22 Nov 2004 19:23:37 -0600
Hi there:
I am trying to export (use) a private key from the certificate store to sign
a
hash. But I am getting the error:
Export of private parameters is not supported
I have this:
Dim store =
Microsoft.Web.Services2.Security.X509.X509CertificateStore.LocalMachineStore(Microsoft.Web.Services2.Security.X509.X509CertificateStore.MyStore)
store.OpenRead
Dim cert as Microsoft.Web.Services2.Security.X509.X509Certificate =
store.Certificates(0)
Dim RSA as RSA = Cert.Key
Dim RSAParams as RSAParameters = Cert.Key.ExportParameters(True)
The exception happens when the last line executes. I guess its a permission
problem, but I can't figure it out the solution. Can anyone help me? Thanks.
- Next message: Mark: "Re: Adding key makes solution compile very slow"
- Previous message: Robert Hurlbut: "Re: Adding key makes solution compile very slow"
- Next in thread: Nicole Calinoiu: "Re: Using private keys to sign hash"
- Reply: Nicole Calinoiu: "Re: Using private keys to sign hash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|