846d819368
- Port `sq verify`'s examples to the example framework and improve them. - See #196. |
||
---|---|---|
.. | ||
cert-store | ||
alice-new-secret.pgp | ||
alice-secret.pgp | ||
alice.pgp.rev | ||
autocrypt.eml | ||
bob-secret.pgp | ||
bob.pgp.rev | ||
ciphertext.pgp | ||
document.pgp | ||
document.sig | ||
document.txt | ||
juliet-secret.pgp | ||
juliet.pgp | ||
juliet.pgp.rev | ||
message.pgp | ||
password-file.txt | ||
README.md | ||
romeo-secret.pgp | ||
romeo.pgp |
Introduction
This directory contains data for the examples.
The test suite executes each subcommand's examples. Each subcommand has its own context (temporary directory), which is set to the current working directory. The contents of this directory are copied into that directory. If a subcommand has multiple examples, they are execute after each other in the same context.
By using static data, we can use known fingerprints in the examples.
Contents
-
alice-secret.pgp: A general-purpose certificate for Alice alice@example.org.
- Imported into the cert store.
-
bob-secret.pgp: A general-purpose certificate for Bob bob@example.org.
- Imported into the cert store.
- Certified by Alice.
-
juliet.pgp: A general-purpose certificate for Juliet Capulet juliet@example.org.
- NOT imported into the cert store.
-
romeo.pgp: A general-purpose certificate for Romeo Montague romeo@example.org.
- NOT imported into the cert store.
-
document.txt, document.sig: A document, and a detached signatured.
sq sign --detached --signer-file juliet-secret.pgp document.txt > document.sig
sq verify --signer-file juliet-secret.pgp --detached document.sig document.txt
-
document.pgp: An inline-signed document, equivalent to the above.
-
message.pgp: A document encrypted for Bob, and signed by Alice.
echo 'Golf this afternoon?' | sq encrypt --recipient-file bob-secret.pgp --signer-file alice-secret.pgp > message.pgp