Getting null response during downloading certificate

Patel, Kunjal 0 Reputation points
2024-09-27T16:50:43.51+00:00

Hello Azure Community,

We are using API Management for business transactions and supporting it with a Function App and Key Vault for security. We've updated our code to ensure the certificate is downloaded and remains in object memory for subsequent calls. However, we frequently encounter the issue below. Restarting the Function App temporarily resolves the problem for 1-2 hours before the cycle repeats.

Note: We have provided sufficient access to Key Vault and have opened a ticket with Microsoft. They suggested adding a retry option, which we implemented, but the issue persists.

Kindly suggest the solution as we are facing in Production and running out of ideas.

Error :

Postmethod error The implicit cast from Response<System.Security.Cryptography.X509Certificates.X509Certificate2> to System.Security.Cryptography.X509Certificates.X509Certificate2 failed because the Response<System.Security.Cryptography.X509Certificates.X509Certificate2> was null. (Parameter 'response')
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,316 questions
Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,175 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,124 questions
{count} votes

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.