public static bool VerifyOcspCertificates(BasicOcspResp ocsp, ArrayList keystore) { try { foreach (X509Certificate certStoreX509 in keystore) { try { if (ocsp.Verify(certStoreX509.GetPublicKey())) return true; } catch { } } } catch { } return false; }