markblue777
markblue777

Reputation: 879

Azure APIM and cloud service SSL not working

I have a cloud service and an Azure APIM instance with a self signed client cert setup on them (the cert has intended purposes of server auth and client auth).

Each API within the APIM has the client cert setup on its security. However, when I perform the call the following comes back in the trace.

"messages":["Error occured while calling backend service.","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."

Is there anything I am missing here, searching online and cannot see anything obvious.

Upvotes: 1

Views: 5233

Answers (2)

KEL_Syd
KEL_Syd

Reputation: 71

You can create a backend entity through power shell scripts to skipcertifioc

Upvotes: -1

Kaushal Kumar Panday
Kaushal Kumar Panday

Reputation: 2467

Yes you are correct, the option is not available in the portal to allow self-signed certificates. Here is a blogpost by Sasha Rosenbaum: http://divineops.net/enable-self-signed-certificates-in-azure-api-management-services/

Here basically you are skipping the certificate verification using "skipCertificateChainValidation" attribute.

enter image description here

Upvotes: 2

Related Questions