Random certificate chain errors in Azure function apps

Ahmet Altun 0 Reputation points
2024-07-09T07:15:53.1566667+00:00

Hi,

We are calling an on-prem gRPC service from Azure function app (running on Linux app service plan).

The on -prem grpc service has an self signed certificate (not a vendor cert).

In order to pass SSL verification successfully - all the intermediate and root parents of the remote certificate are imported to function separately - The thumbprints of the certificates are referred via WEBSITE_LOAD_ROOT_CERTIFICATES env variable.

 Even though this configuration enables smooth SSL communication, it fails randomly complaining about "The remote certificate is invalid because of errors in the certificate chain: PartialChain". This random error occurs at an arbitrary time - without us changing nothing - and immediately resolved once app is restarted. Do you have any idea why it might happen and how to solve it?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,939 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.