Is disabling Validate certificate chain safe ?

Amy Z 301 Reputation points
2021-07-27T14:10:11.147+00:00

Hi, we encounter such error while test calling backend service from APIM management plane and already found a workaround.

The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.",
"The remote certificate is invalid according to the validation procedure
118317-image.png

Workaround :
Disable Validate certificate chain and Validate certificate name from Backends > Properties , the error is gone.

One question here
Is the workaround safe ? Azure resource shows http in protocol which concerns us if this way uses insecure HTTP instead of HTTPS for data transmission.
118303-image.png

Need your advice, thank you

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,452 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 60,161 Reputation points
    2021-07-27T14:43:11.12+00:00

    Depends. Do you trust the cert chain up to the root? If you do then it is safe to turn it off and it'll speed up things a little. However that also means that if somebody somewhere along the way injects a bogus cert in the chain (not sure how'd they actually do that on APIM though) then you'd never know. Personally I think you should figure out why the higher level cert(s) is/aren't valid. Did somebody use the wrong one? Have you been hacked? Disabling validation chains should be a last resort and only perhaps in sandbox/test environments where you're dealing with non-sensitive data.

    You definitely don't want to use HTTP in your APIs (or websites either). The docs say this can be either http or https so you should be using https. Otherwise the cert validation isn't useful.

    1 person found this answer helpful.

Your answer

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