X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=doc%2Ftinc.texi;h=447444662ffacb487defd7f905ffa0de49f4166d;hp=ed5544692d3115b78ead3ba6f292b087ad66e647;hb=d8ca00fe40ff4b6d87e7e64c273f536fab462356;hpb=7418e9077f84db10ef6bb082a375870a7130bd7d diff --git a/doc/tinc.texi b/doc/tinc.texi index ed554469..44744466 100644 --- a/doc/tinc.texi +++ b/doc/tinc.texi @@ -2487,6 +2487,23 @@ When problems are found, this will be printed on a line with WARNING or ERROR in Most problems must be corrected by the user itself, however in some cases (like file permissions and missing public keys), tinc will ask if it should fix the problem. +@cindex sign +@item sign [@var{filename}] +Sign a file with the local node's private key. +If no @var{filename} is given, the file is read from standard input. +The signed file is written to standard output. + +@cindex verify +@item verify @var{name} [@var{filename}] + +Check the signature of a file against a node's public key. +The @var{name} of the node must be given, +or can be "." to check against the local node's public key, +or "*" to allow a signature from any node whose public key is known. +If no @var{filename} is given, the file is read from standard input. +If the verification is succesful, a copy of the input with the signature removed is written to standard output, and the exit code will be zero. +If the verification failed, nothing will be written to standard output, and the exit code will be non-zero. + @end table @c ==================================================================