C# Class NetworkCommsDotNet.Connections.TCP.SSLOptions

Contains SSL configuration options
Exibir arquivo Open project: MarcFletcher/NetworkComms.Net Class Usage Examples

Public Methods

Method Description
SSLOptions ( ) : System

Initialise a new empty instance of SSLOptions, which disables SSL.

SSLOptions ( X509Certificate certificate, bool allowSelfSignedCertificates ) : System

Initialise a new instance of SSLOptions which enables SSL. If this SSLOptions is used server side any client requires either a copy of the provided certificate or the certificate name to successfully connect.

SSLOptions ( X509Certificate certificate, bool allowSelfSignedCertificates, bool requireMutualAuthentication ) : System

Initialise a new instance of SSLOptions which enables SSL. If requireMutualAuthentication is true, and this SSLOptions is used server side, any client must have a copy of the certificate to successfully connect.

SSLOptions ( string certificateName, bool allowSelfSignedCertificates ) : System

Initialise a new instance of SSLOptions which enables SSL. Can be successfully used to connect to a server with a matching certificateName. Server must not require MutualAuthentication.

Method Details

SSLOptions() public method

Initialise a new empty instance of SSLOptions, which disables SSL.
public SSLOptions ( ) : System
return System

SSLOptions() public method

Initialise a new instance of SSLOptions which enables SSL. If this SSLOptions is used server side any client requires either a copy of the provided certificate or the certificate name to successfully connect.
public SSLOptions ( X509Certificate certificate, bool allowSelfSignedCertificates ) : System
certificate System.Security.Cryptography.X509Certificates.X509Certificate The certificate
allowSelfSignedCertificates bool If true self signed certificates may be used successfully. CAUTION: Allowing self signed certificates makes it /// significantly easier for a remote peer to impersonate someone.
return System

SSLOptions() public method

Initialise a new instance of SSLOptions which enables SSL. If requireMutualAuthentication is true, and this SSLOptions is used server side, any client must have a copy of the certificate to successfully connect.
public SSLOptions ( X509Certificate certificate, bool allowSelfSignedCertificates, bool requireMutualAuthentication ) : System
certificate System.Security.Cryptography.X509Certificates.X509Certificate The certificate
allowSelfSignedCertificates bool If true self signed certificates may be used successfully. CAUTION: Allowing self signed certificates makes it /// significantly easier for a remote peer to impersonate someone.
requireMutualAuthentication bool True if any client must also have a copy of the server certificate
return System

SSLOptions() public method

Initialise a new instance of SSLOptions which enables SSL. Can be successfully used to connect to a server with a matching certificateName. Server must not require MutualAuthentication.
public SSLOptions ( string certificateName, bool allowSelfSignedCertificates ) : System
certificateName string The server certificate name
allowSelfSignedCertificates bool If true self signed certificates may be used successfully. CAUTION: Allowing self signed certificates makes it /// significantly easier for a remote peer to impersonate someone.
return System