X.509 certificates and RSA encryption
From: Mikael Engdahl ([myfirstname)
Date: 01/23/04
- Next message: Johannes Resch: "Re: Certificates received from Windows CertStore: wrong public key (and incorrect modulus length)?"
- Previous message: Bruno van Dooren: "Re: symmetric encryption class"
- Next in thread: Thorsten Kallweit: "Re: X.509 certificates and RSA encryption"
- Reply: Thorsten Kallweit: "Re: X.509 certificates and RSA encryption"
- Reply: Michel Gallant: "Re: X.509 certificates and RSA encryption"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 23 Jan 2004 11:51:24 +0100
Q1:
I have a certificate file (.cer) that I'm able to load into a
X509Certificate object using the X509Certificate.CreateFromCertFile method.
Now I want to use the public key from the certificate to do some RSA
encrypting. I can get the key from the certificate as a byte array by using
the GetPublicKey method, but I can't find any way of supplying the key to
the RSACryptoServiceProvider object. How do I do this?
Q2:
The same as above, but another certificate (mine), and this time I want to
use the private key (for signing). But I can't even find I way of getting
the private key out of the cert (there is no GetPrivateKey method).
Is the private key even in the certificate?
Mikael Engdahl
- Next message: Johannes Resch: "Re: Certificates received from Windows CertStore: wrong public key (and incorrect modulus length)?"
- Previous message: Bruno van Dooren: "Re: symmetric encryption class"
- Next in thread: Thorsten Kallweit: "Re: X.509 certificates and RSA encryption"
- Reply: Thorsten Kallweit: "Re: X.509 certificates and RSA encryption"
- Reply: Michel Gallant: "Re: X.509 certificates and RSA encryption"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|