X509Certificate.CreateFromSignedFile(String) Method

Definition

Creates an X.509v3 certificate from the specified signed file.

public:
 static System::Security::Cryptography::X509Certificates::X509Certificate ^ CreateFromSignedFile(System::String ^ filename);
public static System.Security.Cryptography.X509Certificates.X509Certificate CreateFromSignedFile (string filename);
static member CreateFromSignedFile : string -> System.Security.Cryptography.X509Certificates.X509Certificate
Public Shared Function CreateFromSignedFile (filename As String) As X509Certificate

Parameters

filename
String

The path of the signed file from which to create the X.509 certificate.

Returns

The newly created X.509 certificate.

Remarks

ASN.1 DER is the only certificate format supported by this class.

Security

FileIOPermission
for the ability to read the file specified by the filename parameter. Associated enumeration: Read

Applies to