IsValidCertChain() public static method

Checks if cert is from a trusted CA with a valid certificate chain.
public static IsValidCertChain ( X509Certificate2 cert, bool online ) : bool
cert System.Security.Cryptography.X509Certificates.X509Certificate2 X509 Certificate
online bool Check certificate chain online or offline.
return bool
コード例 #1
0
ファイル: PeFile.cs プロジェクト: bincker/PeNet
        /// <summary>
        ///     Checks if cert is from a trusted CA with a valid certificate chain.
        /// </summary>
        /// <param name="online">Check certificate chain online or off-line.</param>
        /// <returns>True of cert chain is valid and from a trusted CA.</returns>
        public bool IsValidCertChain(bool online)
        {
            if (!IsSigned)
            {
                return(false);
            }

            return(Utility.IsValidCertChain(PKCS7, online));
        }