Random certificate chain errors in Azure function apps
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?