"Successfully imported Key Vault Certificate, but failed to configure SSL binding"

Lee Reams 0 Reputation points
2024-10-03T22:26:02.0266667+00:00

I have a number of certificates in my Azure Key Vault, which were all generated the same way. I also have a number of Web App Services, which were all created the same way. But sometimes, when I add a custom domain to an App Service, and then try to bind a certificate from my Key Vault, I get an error that looks like:

Successfully imported Key Vault Certificate, but failed to configure SSL binding for foobar.example.com with ABCDEF0123456789ABCDEF0123456789 due to error: Certificate ABCDEF0123456789ABCDEF0123456789 was not found.

I'm really confused by this error. If it was successfully imported, then why was it not found? And why does this only happen to me every now and then? Most of the time these exact same steps work without issue.

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,454 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,986 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Akhilesh Vallamkonda 15,320 Reputation points Microsoft External Staff Moderator
    2024-10-17T19:28:01.7933333+00:00

    Hi @Lee Reams

    Thank you for post!

    I understand that when you add a custom domain to an App Service, and then try to bind a certificate from my Key Vault, I get an error that looks like:

    Successfully imported Key Vault Certificate, but failed to configure SSL binding for foobar.example.com with ABCDEF0123456789ABCDEF0123456789 due to error: Certificate ABCDEF0123456789ABCDEF0123456789 was not found.

    Could you please try to configure SSL binding for domain by following below artical.
    Provide security for a custom DNS name with a TLS/SSL binding in App Service
    If the issue is not fixed Provide access to Key Vault keys, certificates, and secrets with an Azure role-based access control and Assign a Key Vault access policy to perform different operations on Key Vault secrets, keys, and certificates.
    Hope this helps. Do let us know if you any further queries by responding in the comments section.

    Thanks,

    Akhilesh.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


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.