WCF: NotSupportedException: The SSL settings for the service ‘SslRequireCert’ does not match those of the IIS ‘Ssl’.

When you are using WCF with client certificate over SSL in web hosted case, you might hit an exception like the following: [NotSupportedException: The SSL settings for the service ‘SslRequireCert’ does not match those of the IIS ‘Ssl’.] System.ServiceModel.Activation.HostedAspNetEnvironment.ValidateHttpsSettings(String virtualPath, Nullable`1& requireClientCertificate) +117347 System.ServiceModel.Channels.HttpsChannelListener.ApplyHostedContext(String virtualPath, Boolean isMetadataListener) +97 System.ServiceModel.Activation.HostedAspNetEnvironment.ApplyHostedContext(TransportChannelListener listener, BindingContext context) +84 System.ServiceModel.Channels.HttpsTransportBindingElement.BuildChannelListener(BindingContext context)…

1