Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
        }