/// <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); }
/// <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); }
/// <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; }
/// <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; }