Contains information regarding an X.509v3 certificate.
Namespace: EnterpriseDT.Net.Ftp.SslAssembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40
Syntax
C# |
---|
public class SSLFTPCertificate : IDisposable |
Visual Basic |
---|
Public Class SSLFTPCertificate _ Implements IDisposable |
Visual C++ |
---|
public ref class SSLFTPCertificate : IDisposable |
Remarks
Certificates are used here in two basic ways: (1) to validate the server to the client, and (2) to validate the client to the server. In the former case, the certificate is obtained from the server. In the latter case, the certificate must be loaded from a file.
Certificates may be loaded from files using one of the following three methods:
- CreateFromCER(...) - Loads the certificate from a CER file
- CreateFromPEM(...) - Loads the certificate from a PEM file
- CreateFromPFX(...) - Loads the certificate from a PFX file
Private keys may be loaded from a PVK file and associated with a certificate using the AssociatePrivateKey(string,string) method.
Instances of this class should be managed via using or Dispose.