Linux command
minisign 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Generate key pair
minisign -G
Sign file
minisign -Sm [file]
Verify signature
minisign -Vm [file] -p [pubkey.pub]
Sign with comment
minisign -Sm [file] -c "[Signed by me]"
Verify with trusted key
minisign -Vm [file] -P [public_key_string]
说明
minisign creates and verifies signatures. It's simpler than GPG with good security. The tool uses Ed25519 signatures. Designed for signing software releases.
参数
- -G
- Generate a new key pair.
- -S
- Sign a file.
- -V
- Verify a signature.
- -R
- Re-create a public key file from an existing secret key.
- -m _FILE_
- File to sign or verify.
- -o
- With -S, emit a pre-hashed signature (required for files >1 GiB).
- -H
- With -V, require the signature to be a pre-hashed signature.
- -q
- Quiet mode; suppress the "Comment" banner on successful verification.
- -Q
- Pretty-print the public key and the signature comment.
- -s _FILE_
- Secret key file (default `~/.minisign/minisign.key`).
- -p _FILE_
- Public key file.
- -P _KEY_
- Public key supplied on the command line (base64).
- -x _FILE_
- Signature file path (default `<input>.minisig`).
- -c _COMMENT_
- Untrusted comment stored in the signature.
- -t _COMMENT_
- Trusted comment (signed, cannot be tampered with without invalidating the signature).
- -f
- Force: overwrite existing files without prompting.
- -W
- Do not encrypt the newly generated secret key.
- -v
- Show the minisign version and exit.
- --help
- Display help information.
FAQ
What is the minisign command used for?
minisign creates and verifies signatures. It's simpler than GPG with good security. The tool uses Ed25519 signatures. Designed for signing software releases.
How do I run a basic minisign example?
Run `minisign -G` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -G do in minisign?
Generate a new key pair.