summaryrefslogtreecommitdiffstats
path: root/sq/sq-subplot.md
diff options
context:
space:
mode:
Diffstat (limited to 'sq/sq-subplot.md')
-rw-r--r--sq/sq-subplot.md40
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"