I need to get the public key associated with a certificate..
The code which I found was as follows...
// The path to the certificate.
string Certificate = "Certificate.cer";
// Load the certificate into an X509Certificate object.
X509Certificate cert = X509Certificate.CreateFromCertFile(Certificate);
// Get the value.
byte results = cert.GetPublicKey();
Now the problem is that My certificate is stored in the registry..
How will I give the path to the certificate... Plz help....
I am working on windows server 2008...