Azure API Managment - Custom Domain - At least one certificate is not valid (Certificate failed validation because it could not be loaded).

David Kjell 0 Reputation points
2025-01-15T12:28:52.45+00:00

Hi,

I have a problem with uploading a pfx certificate for a custom domain in Azure API Management. It works with the developer portal for developer.mydomain.com but when adding same .pfx certificate for the gateway api.mydomain.com it fails with;

At least one certificate is not valid (Certificate failed validation because it could not be loaded).

Any ideas?

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

1 answer

Sort by: Most helpful
  1. Sina Salam 18,876 Reputation points
    2025-01-15T22:00:46.3566667+00:00

    Hello David Kjell,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you are having issues with Azure API Managment - Custom Domain - At least one certificate is not valid (Certificate failed validation because it could not be loaded).

    This is one of the common issues with uploading a PFX certificate for a custom domain in Azure API Management.

    Make sure the PFX certificate is valid and not expired, check that domain matches the domain name (e.g., api.mydomain.com) in the certificate, and is password-protected with the correct password when uploading.

    You can check here on how you can configure custom domains in Azure API Management - https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-configure-custom-domain-gateway and here are the steps to configure a custom domain name for Azure API Management - https://learn.microsoft.com/en-us/azure/api-management/configure-custom-domain

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.

    0 comments No comments

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.