Re: RsaCryptoServiceProvider doubt
- From: Smorn <Smorn@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 18 Feb 2007 01:23:05 -0800
How about this approach("cert" is X509Certificate2)?
RSACryptoServiceProvider rsa_pub =
RSACryptoServiceProvider rsa_prv = (RSACryptoServiceProvider)cert.PrivateKey;
"Victor Pereira" wrote:
Ok thanks for your reply.
I think that i didn't explained very clearly my problem.
I don't know how can i get these properties and populate the
RsaCryptoServiceProvider structure to call the method Encrypt with my
private key. Understood ?
"Joe Kaplan" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx> escreveu na mensagem
The X509Certificate2.PublicKey.Key property will give you an
RSACryptoServiceProvider for that certificate and the
X509Certificate.PrivateKey property will give you an AsymmetricAlgorithm
class you can use.
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services
"Victor Pereira" <pelasaco@xxxxxxxxx> wrote in message
I have a certificate and it's private key.
I'm accessing my certificate and my private key using the
My problem is: I can't pass to the RsaCryptoServiceProvider class my
Private and Public key. How can i do it ?
Thanks in advance,
- Prev by Date: Where's my private key?
- Next by Date: Re: A twist to "Logon User at Domain"
- Previous by thread: Re: RsaCryptoServiceProvider doubt
- Next by thread: Does SslStream support anonymous Diffie-Hellman ciphersuites?