Skip to content

Commit 541cfc5

Browse files
docs: add standalone usage section
1 parent 37706f5 commit 541cfc5

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,32 @@ You can download prebuilt Windows binaries [here](https://github.com/github/smim
4444
- You'll probably want to put `$GOPATH/bin` on your `$PATH`.
4545
- Run `go get github.com/github/smimesign`
4646

47+
## Standalone usage
48+
49+
```sh
50+
$ smimesign --help
51+
Usage: smimesign [-abhsv] [--include-certs n] [--keyid-format {long}] [--list-keys] [--status-fd n] [-t url] [-u USER-ID] [--verify] [files]
52+
-a, --armor create ascii armored output
53+
-b, --detach-sign make a detached signature
54+
-h, --help print this help message
55+
--include-certs=n -3 is the same as -2, but ommits issuer
56+
when cert has Authority Information
57+
Access extension. -2 includes all certs
58+
except root. -1 includes all certs. 0
59+
includes no certs. 1 includes leaf cert.
60+
>1 includes n from the leaf. Default -2.
61+
--keyid-format={long} select how to display key IDs.
62+
--list-keys show keys
63+
-s, --sign make a signature
64+
--status-fd=n write special status strings to the file
65+
descriptor n.
66+
-t, --timestamp-authority=url URL of RFC3161 timestamp authority to
67+
use for timestamping
68+
-u, --local-user=USER-ID use USER-ID to sign
69+
--verify verify a signature
70+
-v, --version print the version number
71+
```
72+
4773
## Configuring Git
4874
4975
Git needs to be told to sign commits and tags using smimesign instead of GnuPG. This can be configured on a global or per-repository level. The Git configuration directives for changing signing tools was changed in version 2.19.

0 commit comments

Comments
 (0)