Exemple #1
0
        internal static byte[] getRootCertBytes()
        {
            X509Certificate2 rootCertificate = CertMaker.GetRootCertificate();

            if (rootCertificate == null)
            {
                return(null);
            }
            return(rootCertificate.Export(X509ContentType.Cert));
        }
Exemple #2
0
        public static bool rootCertExists()
        {
            bool result;

            try
            {
                X509Certificate2 rootCertificate = CertMaker.GetRootCertificate();
                result = (null != rootCertificate);
            }
            catch (Exception)
            {
                result = false;
            }
            return(result);
        }