Пример #1
0
        /// <summary>
        /// Loads a cert file.
        /// </summary>
        /// <param name="cert"></param>
        /// <returns></returns>
        public static CertificateChain Load(Stream cert)
        {
            CertificateChain c = new CertificateChain();

            c.parseCert(cert);
            return(c);
        }
Пример #2
0
        /// <summary>
        /// Loads a cert file.
        /// </summary>
        /// <param name="certFile"></param>
        /// <returns></returns>
        public static CertificateChain Load(byte[] certFile)
        {
            CertificateChain c  = new CertificateChain();
            MemoryStream     ms = new MemoryStream(certFile);

            try { c.parseCert(ms); }
            catch { ms.Dispose(); throw; }

            ms.Dispose();
            return(c);
        }
Пример #3
0
 /// <summary>
 /// Loads a cert file.
 /// </summary>
 /// <param name="cert"></param>
 /// <returns></returns>
 public static CertificateChain Load(Stream cert)
 {
     CertificateChain c = new CertificateChain();
     c.parseCert(cert);
     return c;
 }
Пример #4
0
        /// <summary>
        /// Loads a cert file.
        /// </summary>
        /// <param name="certFile"></param>
        /// <returns></returns>
        public static CertificateChain Load(byte[] certFile)
        {
            CertificateChain c = new CertificateChain();
            MemoryStream ms = new MemoryStream(certFile);

            try { c.parseCert(ms); }
            catch { ms.Dispose(); throw; }

            ms.Dispose();
            return c;
        }