version 1.87, 2017/07/15 18:11:47 |
version 1.88, 2017/11/28 16:59:10 |
|
|
For TLS options |
For TLS options |
.Ar keyword |
.Ar keyword |
may be one of: |
may be one of: |
.Ar tlsall , |
|
which allows the use of all supported TLS protocols and ciphers; |
|
.Ar tlscompat , |
|
which allows the use of all supported TLS protocols and "compat" ciphers; |
|
.Ar noverify , |
.Ar noverify , |
which disables certificate verification; |
which disables certificate verification; |
.Ar noname , |
.Ar noname , |
|
|
.Ar muststaple , |
.Ar muststaple , |
which requires the peer to provide a valid stapled OCSP response |
which requires the peer to provide a valid stapled OCSP response |
with the handshake. |
with the handshake. |
|
The following TLS options specify a value in the form of a key=value pair: |
|
.Ar ciphers , |
|
which allows the supported TLS ciphers to be specified (see |
|
.Xr tls_config_set_ciphers 3 |
|
for further details); |
|
.Ar protocols , |
|
which allows the supported TLS protocols to be specified (see |
|
.Xr tls_config_parse_protocols 3 |
|
for further details). |
It is illegal to specify TLS options if not using TLS. |
It is illegal to specify TLS options if not using TLS. |
.Pp |
.Pp |
For IPv4 TOS value |
For IPv4 TOS value |
|
|
.Pp |
.Pp |
.Dl $ nc -p 31337 -w 5 host.example.com 42 |
.Dl $ nc -p 31337 -w 5 host.example.com 42 |
.Pp |
.Pp |
|
Open a TCP connection to port 443 of www.example.com, and negotiate TLS with |
|
any supported TLS protocol version and "compat" ciphers: |
|
.Pp |
|
.Dl $ nc -cv -T protocols=all -T ciphers=compat www.example.com 443 |
|
.Pp |
Open a TCP connection to port 443 of www.google.ca, and negotiate TLS. |
Open a TCP connection to port 443 of www.google.ca, and negotiate TLS. |
Check for a different name in the certificate for validation. |
Check for a different name in the certificate for validation: |
.Pp |
.Pp |
.Dl $ nc -v -c -e adsf.au.doubleclick.net www.google.ca 443 |
.Dl $ nc -cv -e adsf.au.doubleclick.net www.google.ca 443 |
.Pp |
.Pp |
Open a UDP connection to port 53 of host.example.com: |
Open a UDP connection to port 53 of host.example.com: |
.Pp |
.Pp |