version 1.7, 2005/08/05 14:02:26 |
version 1.8, 2005/08/05 14:17:55 |
|
|
.Nm gzsig |
.Nm gzsig |
.Nd gzip signing utility |
.Nd gzip signing utility |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm gzsig sign |
.Nm gzsig |
|
.Ic sign |
.Op Fl q |
.Op Fl q |
|
.Op Fl f Ar secret_file |
.Ar privkey |
.Ar privkey |
.Op Ar |
.Op Ar |
.Pp |
.Nm gzsig |
.Nm gzsig verify |
.Ic verify |
.Op Fl q |
.Op Fl q |
.Op Fl f Ar secret_file |
.Op Fl f Ar secret_file |
.Ar pubkey |
.Ar pubkey |
|
|
If |
If |
.Ar file |
.Ar file |
is a single dash |
is a single dash |
.Pq Sq \&- |
.Pq Sq - |
or absent, |
or absent, |
.Nm |
.Nm |
reads from the standard input. |
reads from the standard input. |
.Pp |
.Pp |
The options are as follows: |
The options are as follows: |
.Bl -tag -width Ds |
.Bl -tag -width Ds |
.It Nm sign |
|
Sign the input using the private key in |
|
.Ar privkey . |
|
.It Nm verify |
|
Verify the signature using the public key in |
|
.Ar pubkey . |
|
.It Fl q |
|
Enable quiet mode. |
|
.It Fl f Ar secret_file |
.It Fl f Ar secret_file |
Indicates that the passphrase for the key should be read from |
Indicates that the passphrase for the key should be read from |
.Ar secret_file |
.Ar secret_file |
instead of being supplied manually. |
instead of being supplied manually. |
|
.It Fl q |
|
Enable quiet mode. |
|
.It Ic sign |
|
Sign the input using the private key in |
|
.Ar privkey . |
|
.It Ic verify |
|
Verify the signature using the public key in |
|
.Ar pubkey . |
.El |
.El |
.Pp |
.Pp |
The |
The |
.Nm |
.Nm |
utility exits 0 on success or >0 if an error occurred. |
utility exits 0 on success or \*(Gt0 if an error occurred. |
.Sh EXAMPLES |
.Sh EXAMPLES |
Sign |
Sign |
.Ar file1 |
.Ar file1 |
|
|
with the SSH2 identity key, saving the signed file in |
with the SSH2 identity key, saving the signed file in |
.Ar file2 : |
.Ar file2 : |
.Pp |
.Pp |
.Dl $ gzsig sign ~/.ssh/id_rsa < file1 > file2 |
.Dl $ gzsig sign ~/.ssh/id_rsa \*(Ltfile1 \*(Gtfile2 |
.Pp |
.Pp |
Verify the signature on |
Verify the signature on |
.Ar file1 |
.Ar file1 |
using the SSL certificate in |
using the SSL certificate in |
.Ar /etc/ssl/server.crt : |
.Ar /etc/ssl/server.crt : |
.Pp |
.Pp |
.Dl $ gzsig verify /etc/ssl/server.crt < file1 |
.Dl $ gzsig verify /etc/ssl/server.crt \*(Ltfile1 |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr gzip 1 , |
.Xr gzip 1 , |
.Xr ssh-keygen 1 , |
.Xr ssh-keygen 1 , |
.Xr ssl 8 |
.Xr ssl 8 |
.Sh AUTHORS |
.Sh AUTHORS |
Dug Song |
Dug Song |
.Aq dugsong@arbor.net |
.Aq dugsong@arbor.net . |
.Pp |
|
SSH2 support by |
SSH2 support by |
Marius Eriksen |
Marius Eriksen |
.Aq marius@openbsd.org |
.Aq marius@openbsd.org . |