Debian Codegraph @

tests/data/examples/README.md

raw
1 # Introduction
2
3 This directory contains data for the examples.
4
5 The test suite executes each subcommand's examples. Each subcommand
6 has its own context (temporary directory), which is set to the current
7 working directory. The contents of this directory are copied into
8 that directory. If a subcommand has multiple examples, they are
9 execute after each other in the same context.
10
11 By using static data, we can use known fingerprints in the examples.
12
13 # Contents
14
15 - alice-secret.pgp: A general-purpose key for Alice
16 <[email protected]>.
17
18 - Imported into the cert store.
19 - NOT Imported into the key store.
20
21 - alice-new-secret.pgp: A general-purpose key for Alice
22 <[email protected]>.
23
24 - Not related to alice-secret.pgp, modulo having the same user ID.
25 - NOT imported into the cert store.
26 - NOT Imported into the key store.
27
28 - bob.pgp: A general-purpose certificate for Bob
29 <[email protected]>.
30
31 - Imported into the cert store.
32 - Certified by Alice.
33
34 - bob-secret.pgp: A general-purpose key for Bob
35 <[email protected]>.
36
37 - NOT Imported into the key store.
38
39 - juliet.pgp: A general-purpose certificate for Juliet Capulet
40 <[email protected]>.
41
42 - NOT imported into the cert store.
43
44 - juliet-secret.pgp: A general-purpose key for Juliet Capulet
45 <[email protected]>.
46
47 - NOT imported into the key store.
48
49 - romeo.pgp: A general-purpose certificate for Romeo Montague
50 <[email protected]>.
51
52 - NOT imported into the cert store.
53
54 - romeo-secret.pgp: A general-purpose key for Romeo Montague
55 <[email protected]>.
56
57 - NOT imported into the key store.
58
59 - ca-secret.pgp: A key with the user ID <[email protected]>.
60
61 - NOT imported into the cert store.
62
63 - bare.pgp: A bare key.
64
65 A bare key is a public key without any components or signatures.
66 Bare keys are useful when working with raw keys, e.g., keys
67 generated on an OpenPGP card, a TPM device, etc. To add them to a
68 certificate, they just need to be wrapped in a minimal amount of
69 OpenPGP framing; no signatures are required.
70
71 - NOT imported into the key store.
72
73 - document.txt, document.sig: A document, and a detached signatured.
74
75 - `sq sign --detached --signer-file juliet-secret.pgp document.txt > document.sig`
76 - `sq verify --signer-file juliet-secret.pgp --detached document.sig document.txt`
77
78 - document.pgp: An inline-signed document, equivalent to the above.
79
80 - message.pgp: A document encrypted for Bob, and signed by Alice.
81
82 - `echo 'Golf this afternoon?' | sq encrypt --for-file bob-secret.pgp --signer-file alice-secret.pgp > message.pgp`
83
84 - ciphertext.pgp: A document encrypted for Juliet, and signed by Romeo.
85
86 - `echo 'Ti amo!' | sq encrypt --for-file juliet.pgp --signer-file romeo-secret.pgp > ciphertext.pgp`
87
88 - debian/: The checksum file, the signature file, and the signing key
89 for the debian 12.7.0 release.
90
91 - https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/SHA512SUMS
92 - https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/SHA512SUMS.sign