We have a custom middleware in a ASP.NET core 2.1 application that verifies the validity of a client certificate. The cert is not self signed and is a signed by a trusted CA. The application is hosted in Azure app service. We get this the following response from the chainstatus. What could be the issue?
"The revocation function was unable to check revocation for the certificate,The revocation function was unable to check revocation because the revocation server was offline".
X509Chain ch = new X509Chain();
ch.ChainPolicy.RevocationMode = X509RevocationMode.Offline;
var verified = ch.Build(x509Certificate2);
when we change RevocationMode to online it works for the most part but in some cases we get the same chainstatus "The revocation function was unable to check revocation for the certificate,The revocation function was unable to check revocation because the revocation server was offline".
X509Chain ch = new X509Chain();
ch.ChainPolicy.RevocationMode = X509RevocationMode.Online;
var verified = ch.Build(x509Certificate2);