When trying to access the service metadata in a browser I received an error stating that multiple X.509 certificates had been found using the given search criteria.

Solution

The solution was to change the configuration to use an alternative method to find the certificate. In this case I used FindByThumbprint and provided the certificate thumbprint. To obtain the thumbprint do the following:

1. Start > Run > mmc2. File > Add/Remove snap in…3. Find and add Certificates (local machine).4. Find the certificate and double-click on it.5. In the pop-up dialog scroll to Thumbprint and click on it to view the value.6. Copy the thumbprint value and remove spaces.

I then changed the WCF service configuration to look something like this: