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, string password ) |
Visual Basic |
---|
Public Shared Function CreateFromFile ( _ fileName As String, _ password As String _ ) As SSLFTPCertificate |
Visual C++ |
---|
public: static SSLFTPCertificate^ CreateFromFile( String^ fileName, String^ password ) |
Parameters
- fileName
- Type: System..::..String
Path of file to load.
- password
- Type: System..::..String
Password (only used if file is in PFX format).
Return Value
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.