diff --git a/Saml/Saml.cs b/Saml/Saml.cs index 6e49541..1b37f4a 100644 --- a/Saml/Saml.cs +++ b/Saml/Saml.cs @@ -75,8 +75,7 @@ public void LoadCertificate(byte[] certificate) { try { - cert = new X509Certificate2(); - cert.Import(certificate); + cert = new X509Certificate2(certificate); } catch (Exception ex) { throw new LoadCertificateException("Failed to load certificate", ex);