System.Net.FtpWebRequest.EnableSsl Property

Gets or sets a bool that specifies that an SSL connection should be used.

Syntax

public bool EnableSsl { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Note:

Unless the FtpWebRequest.EnableSsl property is true, all data and commands, including your user name and password information, are sent to the server in clear text. Anyone monitoring network traffic can view your credentials and use them to connect to the server. If you are connecting to an FTP server that requires credentials and supports SSL, you should set FtpWebRequest.EnableSsl to true.

The "AUTH TLS" command is sent to the server to request an encrypted session. If the server does not recognize this command, you receive a System.Net.WebException exception.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0