edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing

SSLFTPCertificateCreateFromFile(String, String) Method

Loads the certificate from a file.

Definition

Namespace: EnterpriseDT.Net.Ftp.Ssl
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
C#
public static SSLFTPCertificate CreateFromFile(
	string fileName,
	string password
)

Parameters

fileName  String
Path of file to load.
password  String
Password (only used if file is in PFX format).

Return Value

SSLFTPCertificate

Remarks

This method first attempts to load the certificate as a PEM file, then CER, and finally PFX. If all fail then an exception is thrown.

See Also