C# Класс NetworkCommsDotNet.Connections.TCP.SSLOptions

Contains SSL configuration options
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

SSLOptions() публичный Метод

Initialise a new empty instance of SSLOptions, which disables SSL.
public SSLOptions ( ) : System
Результат System

SSLOptions() публичный Метод

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.
Результат System

SSLOptions() публичный Метод

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
Результат System

SSLOptions() публичный Метод

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.
Результат System