Exemple #1
0
        public static bool ValidateCertificateSignatureWithChain(Certificate certificate)
        {
            Certificate caCertificate = FindIssuerCaCertificate(certificate);

            if (!caCertificate.IsLoaded)
            {
                Logger.log("Can not find issuer certificate");
                return(false);
            }

            if (!CertificateValidator.CheckCertificateWithWithCaCertificate(certificate, caCertificate))
            {
                Logger.log("Can not find validate validity with issuer certificate validity");
                return(false);
            }

            return(true);
        }