version 1.6, 2014/01/01 17:50:33 |
version 1.7, 2014/01/03 17:10:27 |
|
|
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm signify |
.Nm signify |
.Op Fl n |
.Op Fl n |
.Op Fl i Ar input |
.Fl p Ar pubkey |
|
.Fl s Ar seckey |
|
.Fl G |
|
.Nm signify |
.Op Fl o Ar output |
.Op Fl o Ar output |
.Op Fl p Ar pubkey |
.Fl s Ar seckey |
.Op Fl s Ar seckey |
.Fl S |
.Fl G | S | V |
.Ar input |
|
.Nm signify |
|
.Op Fl o Ar output |
|
.Fl p Ar pubkey |
|
.Fl V |
|
.Ar input |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
The |
The |
.Nm |
.Nm |
utility creates and verifies cryptographic signatures. |
utility creates and verifies cryptographic signatures for |
|
an input file |
|
.Ar input . |
The mode of operation is selected by the |
The mode of operation is selected by the |
.Fl G , |
.Fl G , |
.Fl S , |
.Fl S , |
|
|
options. |
options. |
.Pp |
.Pp |
The options are as follows: |
The options are as follows: |
.Bl -tag -width Ds |
.Bl -tag -width Dssoutput |
.It Fl G |
.It Fl G |
Generate a new keypair. |
Generate a new keypair. |
.It Fl i Ar input |
|
Input file to sign or verify. |
|
.It Fl n |
.It Fl n |
Do not ask for a passphrase during key generation. |
Do not ask for a passphrase during key generation. |
Otherwise, |
Otherwise, |
|
|
.Ar input Ns .sig . |
.Ar input Ns .sig . |
.It Fl p Ar pubkey |
.It Fl p Ar pubkey |
Public key produced by |
Public key produced by |
.Ar G , |
.Fl G , |
and used by |
and used by |
.Ar V |
.Fl V |
to check a signature. |
to check a signature. |
.It Fl S |
.It Fl S |
Sign the input file. |
Sign the input file. |
.It Fl s Ar seckey |
.It Fl s Ar seckey |
Secret (private) key produced by |
Secret (private) key produced by |
.Ar G , |
.Fl G , |
and used by |
and used by |
.Ar S |
.Fl S |
to sign a message. |
to sign a message. |
.It Fl V |
.It Fl V |
Verify the input file and signature match. |
Verify the input file and signature match. |
|
|
.El |
.El |
.Sh EXAMPLES |
.Sh EXAMPLES |
Create a new keypair: |
Create a new keypair: |
.Dl $ signify -p newkey.pub -s newkey.sec -G |
.Dl $ signify -G -p newkey.pub -s newkey.sec |
.Pp |
.Pp |
Sign a file, specifying a signature name: |
Sign a file, specifying a signature name: |
.Dl $ signify -s key.sec -i message.txt -o msg.sig -S |
.Dl $ signify -S -s key.sec -o msg.sig message.txt |
.Pp |
.Pp |
Verify a signature, using the default signature name: |
Verify a signature, using the default signature name: |
.Dl $ signify -p key.pub -i generalsorders.txt -V |
.Dl $ signify -V -p key.pub generalsorders.txt |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr cmp 1 , |
.Xr cmp 1 , |
.Xr sha256 1 , |
.Xr sha256 1 , |
|
|
The |
The |
.Nm |
.Nm |
command first appeared in |
command first appeared in |
.Ox 5.5 |
.Ox 5.5 . |