Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 28058

How to get a list of Server installed certificates

$
0
0

I'm trying to create a setup program and one of the web services getting installed requires an SSL certificate.

I have no idea what the cert will be in different environments, so I'm trying to use C# and the ServerManager from the Microsoft.Web.Administration dll to get a list of Server installed certificates to present to the user to select from.

Also, if there are no server installed certificates, stop setup and require one to be installed.

This is for IIS 7+.  The list of certificates I'm speaking of located in IIS manager, click on the server, and then double click Server Certificates.

I'm hoping the list I get back will also allow me to get the Certificate Has and store name so I can update the https binding for a site.

Thanks


Viewing all articles
Browse latest Browse all 28058

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>