Share via

Conneciton to bakend with self signed cert not working.

Rodney De Beer 0 Reputation points
2026-02-12T18:12:58.4166667+00:00

Hello.

We are running a Standard v2 tier APIM.

One of our backends uses a private CA to sign its cert. I have followed the Microsoft documentation here: https://learn.microsoft.com/en-us/azure/api-management/backends?tabs=portal

The private CA thumb print has been captured against the backend and the backend referenced in the inbound policy for the API.

Yet when invoking the API I still get the error below:

{
	"messages": [
		"Error occured while calling backend service.",
		"The remote certificate was rejected by the provided remoteCertificateValidationCallback."
	]
}

Feels like I am missing a config step. Surely the cert itself needs to be imported somewhere?

Please help.

Cheers

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.

{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-02-12T18:13:13.24+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    It seems like you are encountering issues with the connection to your backend service that uses a self-signed certificate signed by a private CA. Here are some steps you can take to troubleshoot and resolve the issue:

    1. Upload the Root CA Certificate: Ensure that the root CA certificate of your private CA is uploaded to your Azure API Management instance. This is necessary for the API Management service to validate the backend service certificate. If you haven't done this yet, follow the guidance on how to add a custom CA certificate in Azure API Management.
    2. Check Certificate Chain: Verify that the entire certificate chain is correctly configured. If your backend service certificate is issued by a private CA, you must upload the corresponding root CA certificate to the API Management instance.
    3. Certificate Validation Settings: Make sure that the certificate validation settings are correctly configured in your API Management backend settings. If you are using a self-signed certificate, ensure that the certificate chain validation is enabled unless you have a specific reason to disable it.
    4. Policy Configuration: Double-check the inbound policy for your API to ensure that it references the correct backend and that the client certificate is being sent properly.
    5. Logs and Diagnostics: Utilize Azure's diagnostic tools to gather more information about the error. This can help identify if there are issues with the certificate validation process.

    If you have followed these steps and are still encountering issues, consider reviewing the detailed error messages and logs for more context on the failure.


    References:

    0 comments No comments

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.