Quantcast
Channel: Configuration & Scripting
Viewing all articles
Browse latest Browse all 780

IIS Certificate binding using C#

$
0
0

Hi,

I am working with SSL certificate and want to bind the certificate using C# to 443 https port . I have code written to add certificate & bind this certificate to 443 port using C#.  but the problem happend when User (Administrator) accidently removed the certificate from IIS Manager which was assigned to the 443 port.

Now, when i see from the IIS manager UI I cannot see the certificate assigned to 443 binding. we can assign the certificate using IIS Manager but i need to programmatically check whether certificate is assigned or not. if not assigned then want to delete old binding and recreate it again using certificate. 

Basically i want to give a recovery utility.

Can anyone suggest how can i check the binding has the certificate or not.

Thanks,

Sidhesh Naik


Viewing all articles
Browse latest Browse all 780

Trending Articles



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