Constructs a TLS connection object (but does not initiate authentication).
Namespace: LaurelBridge.DCFExamples.TLS
Assemblies: EchoSCU (in EchoSCU.exe) Version: DCF34 r13043 DCF_3_4_56_20220408 NetFramework
VerificationSCPExtended (in VerificationSCPExtended.exe) Version: DCF34 r13043 DCF_3_4_56_20220408 NetFramework
Syntax
C#
public TlsConnection( Socket socket, SslProtocols supportedTlsProtocols, bool checkCertificateRevocation = true, bool allowWildcardAndSanCertificates = true, bool allowSelfSignedCertificates = false, bool ignoreCertificateNameMismatch = false )
Parameters
- socket
- Type: System.Net.SocketsSocket
The socket to use for the network stream - supportedTlsProtocols
- Type: System.Security.AuthenticationSslProtocols
The support TLS protocols - checkCertificateRevocation (Optional)
- Type: SystemBoolean
Check for revoked certificates - allowWildcardAndSanCertificates (Optional)
- Type: SystemBoolean
Allow wildcards in hostnames - allowSelfSignedCertificates (Optional)
- Type: SystemBoolean
Allow self-signed certificates - ignoreCertificateNameMismatch (Optional)
- Type: SystemBoolean
Ignore certificate name mismatch errors
See Also