sq-packet-dump1
List packets
Usage
sq packet
dump
[OPTIONS]
FILE
Overview
List packets.
Creates a human-readable description of the packet sequence. Additionally, it can print cryptographic artifacts, and print the raw octet stream similar to hexdump(1), annotating specifically which bytes are parsed into OpenPGP values.
If the packet stream includes an encryption container, `sq` will attempt to decrypt it.
Options
Subcommand options
-
--cert=FINGERPRINT|KEYID -
Dump the packets of the certificate with the specified fingerprint or key ID
-
--cert-email=EMAIL -
Dump the packets of the certificate where a user ID includes the specified email address
-
--cert-file=PATH -
Dump the packets of the cert read from PATH
-
--cert-userid=USERID -
Dump the packets of the certificate with the specified user ID
-
--hex -
Print a hexdump
-
--mpis -
Print cryptographic artifacts
-
--output=FILE -
Write to FILE or stdout if omitted
-
[default:
-]
-
--recipient-file=KEY_FILE -
Decrypt the message using the key in KEY_FILE
-
--session-key=SESSION-KEY -
Decrypt an encrypted message using SESSION-KEY
FILE
|
Read from FILE or stdin if FILE is '-' |
|---|---|
|
[default: |
Global options
See sq(1) for a description of the global options.
Examples
Print the packets of a certificate.
sq packet dump juliet.pgp
Print the packets including cryptographic artifacts of a certificate.
sq packet dump --mpis juliet.pgp
Print the packets including a dump of every byte of a certificate.
sq packet dump --hex juliet.pgp
Prints the packets of an encrypted message, decrypting it using a secret key file.
sq packet dump --recipient-file bob-secret.pgp message.pgp
Version
1.4.1
Releases
4 releases since Debian 11 (Bullseye); the text changed 3 times.
--cert since Debian 13 (Trixie);
--cert-email since Debian 13 (Trixie);
--cert-file since Debian 13 (Trixie);
--cert-userid since Debian 13 (Trixie);
--hex since Debian 12 (Bookworm);
--mpis since Debian 12 (Bookworm);
--recipient-file since Debian 13 (Trixie).
--help until Debian 12 (Bookworm);
-h until Debian 12 (Bookworm);
-o until Debian 12 (Bookworm);
-x until Debian 12 (Bookworm).