Loads the certificate from a file.
Namespace: EnterpriseDT.Net.Ftp.SslAssembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40
Syntax
C# |
---|
public static SSLFTPCertificate CreateFromFile( string fileName ) |
Visual Basic |
---|
Public Shared Function CreateFromFile ( _ fileName As String _ ) As SSLFTPCertificate |
Visual C++ |
---|
public: static SSLFTPCertificate^ CreateFromFile( String^ fileName ) |
Parameters
- fileName
- Type: System..::..String
Path of file to load.
Return Value
The certificate.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.