sanjay s
sanjay s

Reputation: 11

error after clientCredentialType="Certificate"

After enable of

<transport clientCredentialType="Certificate" /> 

from

<transport clientCredentialType="None" /> 

I'm getting the error shown here while accessing the REST service.

The exception message is:

The SSL settings for the service 'SslRequireCert' does not match those of the IIS 'None'

System.NotSupportedException: The SSL settings for the service 'SslRequireCert' does not match those of the IIS 'None'.

Upvotes: 1

Views: 544

Answers (1)

Ding Peng
Ding Peng

Reputation: 3974

After changing clientCredentialType to Certificate, the WCF service needs to accept the client's certificate. If WCF is deployed in IIS, the certificate will be ignored by default, which requires you to enable.

enter image description here

enter image description here

Choose to accept client certificate.

UPDATE

This may be caused by the web app ignoring the client's certificate. You can configure the web app in Azure to accept the certificate from the client:

enter image description here

For more details you can refer to the link below:

https://learn.microsoft.com/en-us/azure/app-service/app-service-web-configure-tls-mutual-auth

Upvotes: 1

Related Questions