SIGNIFY(1)

πŸ’– SIGNIFY(1) πŸ’–

okay bestie, welcome to the signify page from the General Commands Manual β€” yes it's a real section of the manual, and yes it's giving main character energy 🌟


✨ NAME ✨

signify β€” cryptographically sign and verify files πŸ”


🌸 SYNOPSIS 🌸

signify -C [-q] [-p pubkey] [-t keytype] -x sigfile [file ...]
signify -G [-n] [-c comment] -p pubkey -s seckey
signify -S [-enz] [-x sigfile] -s seckey -m message
signify -V [-eqz] [-p pubkey] [-t keytype] [-x sigfile] -m message

πŸ¦‹ DESCRIPTION πŸ¦‹

signify is the utility that creates and verifies cryptographic signatures. A signature verifies the integrity of a message β€” so like, if somebody touched your file, the signature is gonna know, periodt πŸ’…

You pick the mode of operation with these options:

  • -C β€” Verify a signed checksum list, and then verify the checksum for each file. If you don't specify any files, all of them get checked. The sigfile should be the signed output of sha256(1). 🧾
  • -G β€” Generate a new key pair. Keynames should follow the convention of keyname.pub and keyname.sec for the public and secret keys, respectively. πŸ”‘βœ¨
  • -S β€” Sign the specified message file and create a signature. ✍️
  • -V β€” Verify the message and signature match. βœ…

The other options are as follows:

  • -c comment β€” Specify the comment to be added during key generation. πŸ’¬
  • -e β€” When signing, embed the message after the signature. When verifying, extract the message from the signature. (This requires that the signature was created using -e and creates a new message file as output.) πŸ“¦
  • -m message β€” When signing, the file containing the message to sign. When verifying, the file containing the message to verify. When verifying with -e, the file to create. πŸ“„
  • -n β€” When generating a key pair, do not ask for a passphrase. Otherwise, signify will prompt the user for a passphrase to protect the secret key. When signing with -z, store a zero time stamp in the gzip(1) header. πŸ™ˆ
  • -p pubkey β€” Public key produced by -G, and used by -V to check a signature. πŸ”“
  • -q β€” Quiet mode. Suppress informational output. 🀫
  • -s seckey β€” Secret (private) key produced by -G, and used by -S to sign a message. πŸ”’
  • -t keytype β€” When deducing the correct key to check a signature, make sure the actual key matches /etc/signify/*-keytype.pub. 🎯
  • -x sigfile β€” The signature file to create or verify. The default is message.sig. πŸ—‚οΈ
  • -z β€” Sign and verify gzip(1) archives, where the signing data is embedded in the gzip(1) header. πŸ—œοΈ

πŸ’« the file format tea πŸ’«

The key and signature files created by signify have the same format. The first line of the file is a free form text comment that may be edited, so long as it does not exceed a single line. Signature comments will be generated based on the name of the secret key used for signing. This comment can then be used as a hint for the name of the public key when verifying. The second line of the file is the actual key or signature base64 encoded. 🧬


πŸ”₯ EXIT STATUS πŸ”₯

The signify utility exits 0 on success, and >0 if an error occurs. It may fail because of one of the following reasons:

  • Some necessary files do not exist. 😭
  • Entered passphrase is incorrect. πŸ™ƒ
  • The message file was corrupted and its signature does not match. πŸ’€
  • The message file is too large. 🐘

πŸŽ€ EXAMPLES πŸŽ€

Create a new key pair:

$ signify -G -p newkey.pub -s newkey.sec

Sign a file, specifying a signature name:

$ signify -S -s key.sec -m message.txt -x msg.sig

Verify a signature, using the default signature name:

$ signify -V -p key.pub -m generalsorders.txt

Verify a release directory containing SHA256.sig and a full set of release files:

$ signify -C -p /etc/signify/openbsd-80-base.pub -x SHA256.sig

Verify a bsd.rd before an upgrade:

$ signify -C -p /etc/signify/openbsd-80-base.pub -x SHA256.sig bsd.rd

Sign a gzip archive:

$ signify -Sz -s key-arc.sec -m in.tgz -x out.tgz

Verify a gzip pipeline:

$ ftp url | signify -Vz -t arc | tar ztf -

🌈 SEE ALSO 🌈

gzip(1), pkg_add(1), sha256(1), fw_update(8), sysupgrade(8)


πŸ‘‘ HISTORY πŸ‘‘

The signify command first appeared in OpenBSD 5.5. πŸ•°οΈ


🫢 AUTHORS 🫢

Ted Unangst <tedu@openbsd.org> and Marc Espie <espie@openbsd.org>.


and that's the whole page, bestie β€” this one came from the Debian build, dated March 11, 2026, so if you're citing it, that's the version and date you're working with πŸ’–βœ¨ go forth and verify your files, no cap πŸ¦‹

πŸ“¦ where this page comes from