SSLOptions Constructor (X509Certificate, Boolean, Boolean)NetworkComms.Net Help
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.

Namespace: NetworkCommsDotNet.Connections.TCP
Assembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax

public SSLOptions(
	X509Certificate certificate,
	bool allowSelfSignedCertificates,
	bool requireMutualAuthentication
)

Parameters

certificate
Type: OnlineSystem.Security.Cryptography.X509Certificates X509Certificate
The certificate
allowSelfSignedCertificates
Type: OnlineSystem Boolean
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
Type: OnlineSystem Boolean
True if any client must also have a copy of the server certificate
See Also