Browsing pending certificate requests  
Author Message
cds_ks





PostPosted: Common Language Runtime, Browsing pending certificate requests Top

Is it possible to browse pending cert requests using the System.Security.Cryptography.X509Certificates classes They appear to be held in the "Certificate Enrollment Requests" store, but the StoreName enum does not have an option that resembles this.

I would like to detect pending requests like the IIS wizard does. Ideally we would be able to output the thumbprint of the pending request to the user.

Thanks.



.NET Development35  
 
 
Brian Stern - MSFT





PostPosted: Common Language Runtime, Browsing pending certificate requests Top

Yes, it is possible. The X509Store class has several constructor overloads, two of which take a store name as a string. It appears the name Windodws uses for the "Certificate Enrollment Requests" store is "REQUEST".

Brian Stern [MSFT]


 
 
cds_ks





PostPosted: Common Language Runtime, Browsing pending certificate requests Top

Okay, that works.

It hadn't occurred to me to search TechNet for this, but now I see the names of the other stores can be found in "HKEY_CURRENT_USER\Software\Microsoft\SystemCertificates", as described in Certificate Tools and Settings.

Thanks for your help.