public static bool VerifyTimestampCertificates(TimeStampToken ts, ArrayList keystore) { try { foreach (X509Certificate certStoreX509 in keystore) { try { ts.Validate(certStoreX509); return true; } catch { } } } catch { } return false; }