I would like to be able to query the identity of the certificate that has been assigned to a particular website in IIS 5.1/6. I need to configure a WCF service hosted within that website to use the same certificate.
Examples in C# are welcome; even better would be an example showing how I can integrate this with Windows Installer/Wix