MINISIGN(1)
π minisign β the MINISIGN(1) manual, but make it group chat π
Okay bestie, welcome to the manual page for minisign β the dead simple tool to sign files and verify signatures. Weβre gonna go through the whole thing, no skips, no cap. π
β¨ NAME β¨
minisignβ a dead simple tool to sign files and verify signatures. Thatβs her whole brand, and honestly? Highkey iconic. π
π¦ SYNOPSIS π¦
Hereβs the exact command-shape tea, bestie β keep these literal, because this is giving full command-line main character energy:
minisign -G [-p pubkey_file] [-s seckey_file] [-W]
minisign -R [-s seckey_file] [-p pubkey_file]
minisign -C [-s seckey_file] [-W]
minisign -S [-H] [-x sig_file] [-s seckey_file] [-c untrusted_comment]
[-t trusted_comment] -m file [file ...]
minisign -V [-x sig_file] [-p pubkey_file | -P pubkey] [-o] [-q] -m file
π DESCRIPTION π
Minisign is a dead simple tool to sign files and verify signatures.
Itβs portable, lightweight, and uses the highly secure Ed25519 http://ed25519.cr.yp.to/ public-key signature system. Slay. π₯
π OPTIONS π
Okay so these options control the actions of minisign. One bullet per flag, no skipping, periodt. π
-Gβ generate a new key pair. New keys, new era. β¨-Cβ change/remove the password of a secret key. Password glow-up or password removal, your call. π-Rβ recreate a public key file from a secret key file. Turn that secret into a public moment. π¦-Sβ sign files. Main character energy: your file, but signed. ποΈ-Vβ verify that a signature is valid for a given file. Vibe check the signature. β-Hβ requires the input to be prehashed. Prehash era, no cap. π§-lβ sign using the legacy format. Old-school but valid. π-m <file>β file to sign/verify. This is the file in question, bestie. π-oβ combined with-V, output the file content after verification. Verify first, then serve the content. π-p <pubkey_file>β public key file (default:./minisign.pub). Thatβs the default path, fr fr. π-P <pubkey>β public key, as a base64 string. Inline key moment. π-s <seckey_file>β secret key file (default:~/.minisign/minisign.key). Guard it like your group chat. π-Wβ do not encrypt/decrypt the secret key with a password. No password in the mix. π«π-x <sig_file>β signature file (default:<file>.minisig). The sigβs home base. π-c <comment>β add a one-line untrusted comment. Untrusted but cute. π¬-t <comment>β add a one-line trusted comment. Trusted comment, main character. π-qβ quiet mode, suppress output. Shhh, sheβs being quiet. π€«-Qβ pretty quiet mode, only print the trusted comment. The βjust the trusted comment, maβamβ mode. π-fβ force. Combined with-G, overwrite a previous key pair. Force = overwrite energy. β οΈ-vβ display version number. Version check, slay. π·οΈ
πΈ EXAMPLES πΈ
Okay, real-world scenarios, bestie. These are verbatim, so donβt retype them with βfixesβ β copy exactly. π
π Creating a key pair π
Run:
minisign -G
The public key is printed and put into the minisign.pub file. The secret key is encrypted and saved as a file named ~/.minisign/minisign.key. Sheβs locked up and ready. π
ποΈ Signing files ποΈ
Hereβs the line exactly as the manual gives it β yes, both commands are chilling on the same line, iykyk:
$ minisign -Sm myfile.txt $ minisign -Sm myfile.txt myfile2.txt *.c
Or to include a comment in the signature, that will be verified and displayed when verifying the file:
$ minisign -Sm myfile.txt -t Β΄This comment will be signed as wellΒ΄
The secret key is loaded from ${MINISIGN_CONFIG_DIR}/minisign.key, ~/.minisign/minisign.key, or its path can be explicitly set with the -s <path> command-line switch. Periodt. β¨
β Verifying a file β
Run:
$ minisign -Vm myfile.txt -P <pubkey>
or
$ minisign -Vm myfile.txt -p signature.pub
This requires the signature myfile.txt.minisig to be present in the same directory. Donβt forget it. π
The public key can either reside in a file (./minisign.pub by default) or be directly specified on the command line. Either way, verify and slay. π¦
π§ Notes π§
Okay, important lil notes, no cap:
Signature files include an untrusted comment line that can be freely modified, even after signature creation. So that line is literally not locked. π¬
They also include a second comment line, that cannot be modified without the secret key. That one is protected, bestie. π
Trusted comments can be used to add instructions or application-specific metadata (intended file name, timestamps, resource identifiers, version numbers to prevent downgrade attacks). Very main character metadata energy. π Not me being obsessed with downgrade-attack prevention. π
π AUTHOR π
Frank Denis (github [at] pureftpd [dot] org). Shoutout to the author, ngl. π
Thatβs the whole manual, bestie β MINISIGN(1), dated January 2023. Now go sign something iconic! π
β¨π«Ά
π¦ where this page comes from
- alpine 3.24: minisign-doc 0.12-r2 Β· ISC
- arch rolling: minisign 0.12-2 Β· ISC
- epel 10: minisign 0.12-1.el10_0 Β· ISC
- epel 9: minisign 0.12-1.el9 Β· ISC
- fedora 43: minisign 0.12-2.fc43 Β· ISC
- fedora 44: minisign 0.12-3.fc44 Β· ISC
- nixos 26.05: minisign 0.12
- nixpkgs unstable: minisign 0.12
- opensuse-leap 16.0: minisign 0.12-bp160.1.1 Β· ISC
- opensuse-leap 16.0: minisign 0.12-bp160.1.1 Β· ISC
- opensuse-leap 16.0: minisign 0.12-bp160.1.1 Β· ISC
- opensuse-leap 16.0: minisign 0.12-bp160.1.1 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms