summaryrefslogtreecommitdiff
path: root/src/usr.bin/nc/nc.1
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr.bin/nc/nc.1')
-rw-r--r--src/usr.bin/nc/nc.126
1 files changed, 18 insertions, 8 deletions
diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1
index bb3a8f7cf5..e10d385a14 100644
--- a/src/usr.bin/nc/nc.1
+++ b/src/usr.bin/nc/nc.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: nc.1,v 1.87 2017/07/15 18:11:47 jmc Exp $ 1.\" $OpenBSD: nc.1,v 1.88 2017/11/28 16:59:10 jsing Exp $
2.\" 2.\"
3.\" Copyright (c) 1996 David Sacerdote 3.\" Copyright (c) 1996 David Sacerdote
4.\" All rights reserved. 4.\" All rights reserved.
@@ -25,7 +25,7 @@
25.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27.\" 27.\"
28.Dd $Mdocdate: July 15 2017 $ 28.Dd $Mdocdate: November 28 2017 $
29.Dt NC 1 29.Dt NC 1
30.Os 30.Os
31.Sh NAME 31.Sh NAME
@@ -233,10 +233,6 @@ Change IPv4 TOS value or TLS options.
233For TLS options 233For TLS options
234.Ar keyword 234.Ar keyword
235may be one of: 235may be one of:
236.Ar tlsall ,
237which allows the use of all supported TLS protocols and ciphers;
238.Ar tlscompat ,
239which allows the use of all supported TLS protocols and "compat" ciphers;
240.Ar noverify , 236.Ar noverify ,
241which disables certificate verification; 237which disables certificate verification;
242.Ar noname , 238.Ar noname ,
@@ -246,6 +242,15 @@ which requires a client certificate on incoming connections; or
246.Ar muststaple , 242.Ar muststaple ,
247which requires the peer to provide a valid stapled OCSP response 243which requires the peer to provide a valid stapled OCSP response
248with the handshake. 244with the handshake.
245The following TLS options specify a value in the form of a key=value pair:
246.Ar ciphers ,
247which allows the supported TLS ciphers to be specified (see
248.Xr tls_config_set_ciphers 3
249for further details);
250.Ar protocols ,
251which allows the supported TLS protocols to be specified (see
252.Xr tls_config_parse_protocols 3
253for further details).
249It is illegal to specify TLS options if not using TLS. 254It is illegal to specify TLS options if not using TLS.
250.Pp 255.Pp
251For IPv4 TOS value 256For IPv4 TOS value
@@ -497,10 +502,15 @@ the source port, with a timeout of 5 seconds:
497.Pp 502.Pp
498.Dl $ nc -p 31337 -w 5 host.example.com 42 503.Dl $ nc -p 31337 -w 5 host.example.com 42
499.Pp 504.Pp
505Open a TCP connection to port 443 of www.example.com, and negotiate TLS with
506any supported TLS protocol version and "compat" ciphers:
507.Pp
508.Dl $ nc -cv -T protocols=all -T ciphers=compat www.example.com 443
509.Pp
500Open a TCP connection to port 443 of www.google.ca, and negotiate TLS. 510Open a TCP connection to port 443 of www.google.ca, and negotiate TLS.
501Check for a different name in the certificate for validation. 511Check for a different name in the certificate for validation:
502.Pp 512.Pp
503.Dl $ nc -v -c -e adsf.au.doubleclick.net www.google.ca 443 513.Dl $ nc -cv -e adsf.au.doubleclick.net www.google.ca 443
504.Pp 514.Pp
505Open a UDP connection to port 53 of host.example.com: 515Open a UDP connection to port 53 of host.example.com:
506.Pp 516.Pp