Annotation of src/usr.bin/gzsig/gzsig.1, Revision 1.10
1.10 ! sobrado 1: .\" $OpenBSD: gzsig.1,v 1.9 2007/05/31 19:20:11 jmc Exp $
! 2: .\" $Id: gzsig.1,v 1.9 2007/05/31 19:20:11 jmc Exp $
1.1 marius 3: .\"
4: .\" Copyright (c) 2001 Dug Song <dugsong@arbor.net>
5: .\" Copyright (c) 2001 Arbor Networks, Inc.
1.5 jmc 6: .\"
1.1 marius 7: .\" Redistribution and use in source and binary forms, with or without
8: .\" modification, are permitted provided that the following conditions
9: .\" are met:
1.5 jmc 10: .\"
1.1 marius 11: .\" 1. Redistributions of source code must retain the above copyright
12: .\" notice, this list of conditions and the following disclaimer.
13: .\" 2. Redistributions in binary form must reproduce the above copyright
14: .\" notice, this list of conditions and the following disclaimer in the
15: .\" documentation and/or other materials provided with the distribution.
16: .\" 3. The names of the copyright holders may not be used to endorse or
17: .\" promote products derived from this software without specific
18: .\" prior written permission.
1.5 jmc 19: .\"
1.1 marius 20: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
21: .\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
22: .\" AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
23: .\" THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24: .\" EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25: .\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26: .\" OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27: .\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28: .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
29: .\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1.5 jmc 30: .\"
1.10 ! sobrado 31: .Dd $Mdocdate: May 31 2007 $
1.1 marius 32: .Dt GZSIG 1
33: .Sh NAME
34: .Nm gzsig
35: .Nd gzip signing utility
36: .Sh SYNOPSIS
1.8 jmc 37: .Nm gzsig
38: .Ic sign
1.3 djm 39: .Op Fl q
1.8 jmc 40: .Op Fl f Ar secret_file
1.1 marius 41: .Ar privkey
42: .Op Ar
1.8 jmc 43: .Nm gzsig
44: .Ic verify
1.3 djm 45: .Op Fl q
1.4 djm 46: .Op Fl f Ar secret_file
1.1 marius 47: .Ar pubkey
48: .Op Ar
49: .Sh DESCRIPTION
50: .Nm
51: embeds or verifies RSA PKCS #1 v2.0 or DSA SHA1 signatures in
52: .Xr gzip 1
1.2 marius 53: compressed files using SSH identity keys or X509 certificates.
1.1 marius 54: .Pp
55: The
56: .Ar file
1.5 jmc 57: operands are processed in command-line order.
58: If
1.1 marius 59: .Ar file
60: is a single dash
1.8 jmc 61: .Pq Sq -
1.1 marius 62: or absent,
63: .Nm
64: reads from the standard input.
65: .Pp
66: The options are as follows:
67: .Bl -tag -width Ds
1.8 jmc 68: .It Fl f Ar secret_file
69: Indicates that the passphrase for the key should be read from
70: .Ar secret_file
71: instead of being supplied manually.
72: .It Fl q
73: Enable quiet mode.
74: .It Ic sign
1.1 marius 75: Sign the input using the private key in
76: .Ar privkey .
1.8 jmc 77: .It Ic verify
1.1 marius 78: Verify the signature using the public key in
79: .Ar pubkey .
80: .El
81: .Pp
1.10 ! sobrado 82: .Ex -std gzsig
1.1 marius 83: .Sh EXAMPLES
1.5 jmc 84: Sign
1.1 marius 85: .Ar file1
86: and
87: .Ar file2
88: with the SSH2 identity key in
1.5 jmc 89: .Ar ~/.ssh/id_rsa :
1.1 marius 90: .Pp
1.6 jmc 91: .Dl $ gzsig sign ~/.ssh/id_rsa file1 file2
1.1 marius 92: .Pp
93: Sign
94: .Ar file1
95: with the SSH2 identity key, saving the signed file in
1.5 jmc 96: .Ar file2 :
1.1 marius 97: .Pp
1.8 jmc 98: .Dl $ gzsig sign ~/.ssh/id_rsa \*(Ltfile1 \*(Gtfile2
1.1 marius 99: .Pp
100: Verify the signature on
101: .Ar file1
102: using the SSL certificate in
1.5 jmc 103: .Ar /etc/ssl/server.crt :
1.1 marius 104: .Pp
1.8 jmc 105: .Dl $ gzsig verify /etc/ssl/server.crt \*(Ltfile1
1.1 marius 106: .Sh SEE ALSO
107: .Xr gzip 1 ,
108: .Xr ssh-keygen 1 ,
109: .Xr ssl 8
110: .Sh AUTHORS
111: Dug Song
1.8 jmc 112: .Aq dugsong@arbor.net .
1.1 marius 113: SSH2 support by
114: Marius Eriksen
1.8 jmc 115: .Aq marius@openbsd.org .