X509Certificate.CreateFromCertFile Method (String)
Creates an X.509v3 certificate from the specified PKCS7 signed file.
Assembly: mscorlib (in mscorlib.dll)
The path of the PKCS7 signed file from which to create the X.509 certificate.
Return ValueType: System.Security.Cryptography.X509Certificates.X509Certificate
The newly created X.509 certificate.
ASN.1 DER is the only certificate format supported by this class.
The certificate file is not restricted to .cerfiles. Any PKCS7 signed file can be used, including an Authenticode signed .pfx file.
Available since 1.1
Available since 2.0
Windows Phone Silverlight
Available since 7.0