Hi,
Here is the scenario -
I have priavte key stored on a Smart Card device on the client end. On the
server end the corresponding certificate is stored in the AD.
How do I retrive the relevant public Key from the certificate stored in AD?
I am able to extract the certificate from AD (get the byte stream) using LDAP.
But I am not sure that how do I extract the public key and encrypt the
message to send to the client. Every time I am creating an instance of
RSACryptoServiceProvider. It gives me new key pair.
I am using .Net Framework 1.1 and C Sharp.
Thanks
Dominick Baier [DevelopMentor] - 26 Jan 2006 08:32 GMT
Hi,
there is no support for RSA with X509 certificates in 1.1
You have to use CAPICOM - the CryptoAPI COM wrapper[0]
2.0 has support for all that.
[0] http://www.microsoft.com/downloads/details.aspx?FamilyID=860EE43A-A843-462F-ABB5
-FF88EA5896F6&displaylang=en
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
> Hi,
>
[quoted text clipped - 14 lines]
>
> Thanks