Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there,

I would like to know if anyone has experience with accessing the Central Certificate Store(CCS) found in Win Server 2012 from .NET code? To be more detailed read below:



1. I have a website which dynamically loads specific certificates used for different web services. This works well and is done like this:

_client.ClientCredentials.ClientCertificate.SetCertificate(StoreLocation.LocalMachine, StoreName.My, X509FindType.FindBySerialNumber, certificateSerialNumber)

Where _client is of type System.ServiceModel.ClientBase

2. Right now I have several different webservers. My website is running on each of these. I currently need to have all certificates on all of these webservers as any of these servers can perform the web service request.

3. I would like to have a single server with the certificates to ease the certificate maintenance. I have seen that Win Server 2012 provides this through the centralized certificate store(CCS). However, I cannot see that .NET provides an API for accessing the CCS. I am looking for something like:

_client.ClientCredentials.ClientCertificate.SetCertificate(StoreLocation.CCS, X509FindType.FindBySerialNumber,"myCCSServer", certificateSerialNumber)

Hope it makes sense. I am ready to elaborate if needed.

Thanks
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900