ca cert  revoke problem

ca cert revoke problem

Secure Home | Search | About
 Microsoft Applications Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
ca cert revoke problem doronb 01-22-2008
Posted by doronb on January 22, 2008, 6:25 am
If you were  Registered and logged in, you could reply and use other advanced thread options
hello all
i wrote a c# application thta manage Active directory users
as part of this app i have to delete user and revoke their
cretficate
the certficate is an CA and is the issued be other application
as you can see this is the revoke method

private bool RevokeCertificate(DirectoryEntry Entry)
                {
DateTime issueDate;
                        try
                        {


System.Security.Cryptography.X509Certificates.X509Certificate2
X509Cert =
new
System.Security.Cryptography.X509Certificates.X509Certificate2((byte[])
Entry.Properties["userCertificate"][0]);
CERTADMINLib.CCertAdminClass certAdmin = new
CERTADMINLib.CCertAdminClass();
string strConfig =
configurationBase.GetConfigParamValueByParamName("CAName");
string strSert = X509Cert.GetSerialNumberString();
                         issueDate = X509Cert.NotBefore;
                         //PrintParameters(strConfig,strSert);
certAdmin.RevokeCertificate(strConfig, strSert, 0,
DateTime.UtcNow.Date);

                        }
                        catch (Exception ex)
                        {
                                MessageBox.Show(ex.Message);

                                return false;
                        }

                        return true;
                }

the problem is that the revoke get an error message in the
revokeCertificate
"Access is Denied. (Exception from HRESULT: 0x80070005
(E_ACCESSDENIED))

1) ? does any one know about any problem in the MS revoke method
2) Any other way to rekove a certtficate

Similar ThreadsPosted
Revoke a CA April 1, 2008, 9:11 am
Root CA cert expires, I renewed but I'm unable to request new cert March 7, 2006, 3:16 pm
Commercial cert vs. Microsoft Certificate Services generated cert June 21, 2007, 4:23 am
Computer cert/User cert 802.x Authentication query August 7, 2007, 5:20 am
how do i export a cert from my ca? February 16, 2006, 10:27 pm
Cert Server and RMS August 23, 2006, 1:35 pm
Non-domain Cert-based 802.1x using IAS November 15, 2005, 12:21 pm
Non-MS Cert Req -- How to sign with Microsoft CA? August 24, 2006, 3:56 pm
public and private cert January 8, 2008, 12:05 am
PKY gurus: why it is not necessary to install a cert under "Public July 23, 2005, 12:16 am

The site map in XML format XML site map

Contact Us | Privacy Policy