diff options
author | Neal H. Walfield <neal@pep.foundation> | 2022-10-05 13:28:38 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2022-10-30 07:23:13 +0100 |
commit | 3f367e8a303646704976ed212254ec5b91c7cff1 (patch) | |
tree | 8b88fd199104747553a1a2174689da797ac3f71e /sq/sq-subplot.md | |
parent | 8826fe15d4885f495c038e6b9c0ca7666b63025e (diff) |
sq: Rename --signer-cert, etc. to --signer-file
- Rename `--recipient-cert` to `--recipient-file`, `--signer-cert`
to `--signer-file`, and `--certificate` to `--certificate-file`.
- This rename makes it clearer that the argument is a file
containing a certificate.
- See #933.
Diffstat (limited to 'sq/sq-subplot.md')
-rw-r--r-- | sq/sq-subplot.md | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/sq/sq-subplot.md b/sq/sq-subplot.md index c6dedb1e..4b32f156 100644 --- a/sq/sq-subplot.md +++ b/sq/sq-subplot.md @@ -996,7 +996,7 @@ given an installed sq given file hello.txt when I run sq key generate --export key.pgp when I run sq key extract-cert -o cert.pgp key.pgp -when I run sq encrypt --recipient-cert cert.pgp hello.txt +when I run sq encrypt --recipient-file cert.pgp hello.txt then stdout contains "-----BEGIN PGP MESSAGE-----" then stdout doesn't contain "hello, world" ~~~ @@ -1015,7 +1015,7 @@ given an installed sq given file hello.txt when I run sq key generate --export key.pgp when I run sq key extract-cert -o cert.pgp key.pgp -when I run sq encrypt --binary --recipient-cert cert.pgp hello.txt +when I run sq encrypt --binary --recipient-file cert.pgp hello.txt then stdout doesn't contain "-----BEGIN PGP MESSAGE-----" then stdout doesn't contain "hello, world" ~~~ @@ -1037,7 +1037,7 @@ given an installed sq given file hello.txt when I run sq key generate --export key.pgp when I run sq key extract-cert -o cert.pgp key.pgp -when I run sq encrypt -o x.pgp --recipient-cert cert.pgp hello.txt +when I run sq encrypt -o x.pgp --recipient-file cert.pgp hello.txt when I run sq decrypt -o output.txt --recipient-file key.pgp x.pgp then files hello.txt and output.txt match ~~~ @@ -1056,7 +1056,7 @@ when I run sq key extract-cert -o alice-cert.pgp alice.pgp when I run sq key generate --export bob.pgp when I run sq key extract-cert -o bob-cert.pgp bob.pgp -when I run sq encrypt --recipient-cert alice-cert.pgp --recipient-cert bob-cert.pgp hello.txt -o x.pgp +when I run sq encrypt --recipient-file alice-cert.pgp --recipient-file bob-cert.pgp hello.txt -o x.pgp when I run sq decrypt --recipient-file alice.pgp -o alice.txt x.pgp then files hello.txt and alice.txt match @@ -1077,9 +1077,9 @@ given file hello.txt when I run sq key generate --export alice.pgp when I run sq key extract-cert -o alice-cert.pgp alice.pgp -when I run sq encrypt --recipient-cert alice-cert.pgp --signer-file alice.pgp hello.txt -o x.pgp +when I run sq encrypt --recipient-file alice-cert.pgp --signer-file alice.pgp hello.txt -o x.pgp -when I run sq decrypt --recipient-file alice.pgp -o alice.txt x.pgp --signer-cert alice-cert.pgp +when I run sq decrypt --recipient-file alice.pgp -o alice.txt x.pgp --signer-file alice-cert.pgp then files hello.txt and alice.txt match ~~~ @@ -1098,9 +1098,9 @@ when I run sq key extract-cert -o alice-cert.pgp alice.pgp when I run sq key generate --export bob.pgp when I run sq key extract-cert -o bob-cert.pgp bob.pgp -when I run sq encrypt --recipient-cert alice-cert.pgp --signer-file alice.pgp hello.txt -o x.pgp +when I run sq encrypt --recipient-file alice-cert.pgp --signer-file alice.pgp hello.txt -o x.pgp -when I try to run sq decrypt --recipient-file alice.pgp -o alice.txt x.pgp --signer-cert bob-cert.pgp +when I try to run sq decrypt --recipient-file alice.pgp -o alice.txt x.pgp --signer-file bob-cert.pgp then exit code is 1 then files alice.txt and empty match ~~~ @@ -1217,7 +1217,7 @@ given file hello.txt when I run sq key generate --export key.pgp when I run sq key extract-cert key.pgp -o cert.pgp when I run sq sign --signer-file key.pgp hello.txt -o signed.txt -when I run sq verify --signer-cert cert.pgp signed.txt +when I run sq verify --signer-file cert.pgp signed.txt then stdout contains "hello, world" ~~~ @@ -1239,13 +1239,13 @@ when I run sq key generate --userid Bob --export bob.pgp when I run sq key extract-cert bob.pgp -o bob-cert.pgp when I run sq sign --signer-file alice.pgp hello.txt -o signed1.txt -when I try to run sq verify --signer-cert alice-cert.pgp --signer-cert bob-cert.pgp --signatures=2 signed1.txt +when I try to run sq verify --signer-file alice-cert.pgp --signer-file bob-cert.pgp --signatures=2 signed1.txt then exit code is 1 when I run sq sign --append --signer-file bob.pgp signed1.txt -o signed2.txt -when I run sq verify --signer-cert alice-cert.pgp --signer-cert bob-cert.pgp --signatures=1 signed2.txt +when I run sq verify --signer-file alice-cert.pgp --signer-file bob-cert.pgp --signatures=1 signed2.txt then stdout contains "hello, world" -when I run sq verify --signer-cert alice-cert.pgp --signer-cert bob-cert.pgp --signatures=2 signed2.txt +when I run sq verify --signer-file alice-cert.pgp --signer-file bob-cert.pgp --signatures=2 signed2.txt then stdout contains "hello, world" ~~~ @@ -1267,7 +1267,7 @@ when I run sq key generate --export key.pgp when I run sq key extract-cert key.pgp -o cert.pgp when I run sq sign --signer-file key.pgp hello.txt -o signed.txt when I run bash sed-in-place 3d signed.txt -when I try to run sq verify --signer-cert cert.pgp signed.txt +when I try to run sq verify --signer-file cert.pgp signed.txt then command fails ~~~ @@ -1296,7 +1296,7 @@ when I run sq sign --cleartext-signature --signer-file key.pgp hello.txt -o sign then file signed.txt contains "-----BEGIN PGP SIGNED MESSAGE-----" then file signed.txt contains "hello, world" then file signed.txt contains "-----END PGP SIGNATURE-----" -when I run sq verify --signer-cert cert.pgp signed.txt +when I run sq verify --signer-file cert.pgp signed.txt then stdout contains "hello, world" ~~~ @@ -1315,7 +1315,7 @@ when I run sq key extract-cert key.pgp -o cert.pgp when I run sq sign --cleartext-signature --signer-file key.pgp hello.txt -o signed.txt when I run bash sed-in-place s/hello/HELLO/ signed.txt -when I try to run sq verify --signer-cert cert.pgp signed.txt +when I try to run sq verify --signer-file cert.pgp signed.txt then exit code is 1 ~~~ @@ -1333,7 +1333,7 @@ when I run sq key extract-cert key.pgp -o cert.pgp when I run sq sign --detached --signer-file key.pgp hello.txt -o sig.txt then file sig.txt contains "-----BEGIN PGP SIGNATURE-----" then file sig.txt contains "-----END PGP SIGNATURE-----" -when I run sq verify --detached=sig.txt --signer-cert=cert.pgp hello.txt +when I run sq verify --detached=sig.txt --signer-file=cert.pgp hello.txt then stdout doesn't contain "hello, world" then exit code is 0 ~~~ @@ -1353,7 +1353,7 @@ when I run sq key extract-cert key.pgp -o cert.pgp when I run sq sign --detached --signer-file key.pgp hello.txt -o sig.txt when I run bash sed-in-place s/hello/HELLO/ hello.txt -when I try to run sq verify --detached=sig.txt --signer-cert=cert.pgp hello.txt +when I try to run sq verify --detached=sig.txt --signer-file=cert.pgp hello.txt then exit code is 1 ~~~ @@ -1373,7 +1373,7 @@ when I run sq key extract-cert bob.pgp -o bob-cert.pgp when I run sq sign --signer-file alice.pgp hello.txt -o signed1.txt when I run sq sign --signer-file bob.pgp --append signed1.txt -o signed2.txt -when I run sq verify signed2.txt --signer-cert alice-cert.pgp --signer-cert bob-cert.pgp +when I run sq verify signed2.txt --signer-file alice-cert.pgp --signer-file bob-cert.pgp then stdout contains "hello, world" then stderr contains "2 good signatures" ~~~ @@ -1394,7 +1394,7 @@ when I run sq key extract-cert bob.pgp -o bob-cert.pgp when I run sq sign --signer-file alice.pgp hello.txt -o signed1.txt when I run sq sign --signer-file bob.pgp hello.txt -o signed2.txt when I run sq sign --merge=signed2.txt signed1.txt -o merged.txt -when I run sq verify merged.txt --signer-cert alice-cert.pgp --signer-cert bob-cert.pgp +when I run sq verify merged.txt --signer-file alice-cert.pgp --signer-file bob-cert.pgp then stdout contains "hello, world" then stderr contains "2 good signatures" ~~~ @@ -1414,7 +1414,7 @@ when I run sq key extract-cert bob.pgp -o bob-cert.pgp when I run sq sign --signer-file alice.pgp hello.txt -o signed.txt when I run sq sign --signer-file bob.pgp --notarize signed.txt -o notarized.txt -when I run sq verify notarized.txt --signer-cert alice-cert.pgp --signer-cert bob-cert.pgp +when I run sq verify notarized.txt --signer-file alice-cert.pgp --signer-file bob-cert.pgp then stdout contains "hello, world" then stderr contains "Good level 1 notarization from" then stderr contains "2 good signatures" |