Adding validate-client-certificate policy makes the request connection failed

Jia Xie 0 Reputation points Microsoft Employee
2025-11-26T19:52:15.6766667+00:00

Adding validate-client-certificate policy makes the request failed with: An error occurred while sending the request when I use HttpClient making the request.

Policy:

        <validate-client-certificate validate-not-before="true" validate-not-after="true" ignore-error="false" validate-revocation="false">
            <identities>
                <identity subject="CN=xxx" issuer-subject="CN=xxxx" />
            </identities>
        </validate-client-certificate>

I tested the same request with Bruno and Bruno failed with:

Socket error: read ECONNRESET

there was an error executing the request!

{"errno":-4077,"code":"ECONNRESET","syscall":"read"}

{"errno":-4077,"code":"ECONNRESET","syscall":"read"}

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.