public OpenSslPrivateKey(OpenSslBIO bio) { _pkey = OpenSslUtility.AssertNotNull(OpenSslNative.PEM_read_bio_PrivateKey(bio.Handle, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero)); }
public OpenSslCertificate(OpenSslBIO bio) { _x509 = OpenSslUtility.AssertNotNull(OpenSslNative.PEM_read_bio_X509(bio.Handle, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero)); }
public static OpenSslPrivateKey FromPemFile(string file) { return(new OpenSslPrivateKey(OpenSslBIO.FromFile(file))); }
public static OpenSslCertificate FromPemFile(string file) { return(new OpenSslCertificate(OpenSslBIO.FromFile(file))); }