summaryrefslogtreecommitdiff
path: root/usr.bin/nc/nc.1
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2017-04-05 03:20:20 +0000
committerBob Beck <beck@cvs.openbsd.org>2017-04-05 03:20:20 +0000
commit404d521b38d0041a4f40085244add8d0ec5428b7 (patch)
tree8b511de41dad82284f3df7fffcf4090d7b67e1e3 /usr.bin/nc/nc.1
parent9b21f21e08ebc6333357fde523931d33a6998d68 (diff)
Allow nc to save the peer certificate and chain in a pem file specified
with -Z ok jsing@
Diffstat (limited to 'usr.bin/nc/nc.1')
-rw-r--r--usr.bin/nc/nc.19
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/nc/nc.1 b/usr.bin/nc/nc.1
index b1f96488ab0..0f1263da7ce 100644
--- a/usr.bin/nc/nc.1
+++ b/usr.bin/nc/nc.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: nc.1,v 1.82 2017/02/09 20:15:59 jca Exp $
+.\" $OpenBSD: nc.1,v 1.83 2017/04/05 03:20:19 beck Exp $
.\"
.\" Copyright (c) 1996 David Sacerdote
.\" All rights reserved.
@@ -25,7 +25,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: February 9 2017 $
+.Dd $Mdocdate: April 5 2017 $
.Dt NC 1
.Os
.Sh NAME
@@ -53,6 +53,7 @@
.Op Fl w Ar timeout
.Op Fl X Ar proxy_protocol
.Op Fl x Ar proxy_address Ns Op : Ns Ar port
+.Op Fl Z Ar peercertfile
.Op Ar destination
.Op Ar port
.Sh DESCRIPTION
@@ -337,6 +338,10 @@ should just scan for listening daemons, without sending any data to them.
It is an error to use this option in conjunction with the
.Fl l
option.
+.It Fl Z Ar peercertfile
+Specifies the filename in which the peer supplied certificates will be saved
+in PEM format.
+May only be used with TLS.
.El
.Pp
.Ar destination