Commit Graph

416 Commits

Author SHA1 Message Date
Justus Winter
2e07bbe6d1
Make sq cert export do what I mean.
- Add --all to export all certificates.

  - Add a query argument that can be a subkey fingerprint or key ID,
    an email address, or a user ID fragment.

  - Fixes #181.
2024-02-14 17:12:42 +01:00
Justus Winter
e78576ce97
man: Include global options in sq.1, refer to it from other pages. 2024-02-14 14:28:38 +01:00
Justus Winter
09fbaf515d
man: Fix spelling of Sequoia PGP. 2024-02-14 14:28:30 +01:00
Justus Winter
f37df9a211
Implement sq key expire.
- Fixes #113.
2024-02-14 12:47:41 +01:00
Justus Winter
3cbca60dd5
Add a framework for displaying hints to the user. 2024-02-14 12:45:54 +01:00
Justus Winter
65bc02e089
Use the decryption helper to decrypt when dumping packets. 2024-02-13 18:07:07 +01:00
Justus Winter
0a7a75a102
Allow breaking the SKESK password loop using empty passwords. 2024-02-13 17:59:42 +01:00
Justus Winter
d2fc78ba25
Use appropriate function to load secret keys. 2024-02-13 17:59:30 +01:00
Justus Winter
f017009b15
Remove --dump and --hex from sq decrypt, those are power tools. 2024-02-13 17:12:00 +01:00
Justus Winter
f53e0cfd32
Move the top-level command dispatcher. 2024-02-13 17:00:28 +01:00
Justus Winter
3fce463ba6
Suspend progress bar when emitting CA information. 2024-02-13 14:22:55 +01:00
Justus Winter
5b622a7899
Update the sq network fetch documentation to reflect recent changes. 2024-02-13 14:22:28 +01:00
Justus Winter
d9f9bf6ea2
Certify certs downloaded from the web.
- Fixes #174.
2024-02-13 14:21:33 +01:00
Justus Winter
2824dce5d8
Make sq cert lint's input argument work as documented.
- Previously, giving no argument did not read from stdin, contrary
    to what the documentation claimed and how other subcommands
    behave.  Align documentation and behavior.
2024-02-12 23:42:07 +01:00
Justus Winter
d56a510040
Make sq network fetch download certs over http.
- See #174.
2024-02-12 23:42:07 +01:00
Justus Winter
b1f0502d5c
Rename function. 2024-02-12 23:42:07 +01:00
Justus Winter
0f784ed0e6
Add a switch to the network fetch methods to update all certs.
- See #6.
2024-02-12 23:42:07 +01:00
Justus Winter
cce9a0dabf
Move sq keyring to sq toolbox keyring.
- Keyring manipulation should not be necessary, but is a good wrench
    to have in ones toolbox.

  - Fixes #195.
2024-02-09 18:53:51 +01:00
Justus Winter
869b7acec8
Move sq keyring lint to sq cert lint.
- It lints certs, so it should go to sq cert.

  - See #192.
2024-02-09 18:52:11 +01:00
Justus Winter
c1618a8aef
Consider certs in the cert store in sq network fetch.
- This considers more aliases from known certificates.

  - Fixes #159.
2024-02-09 18:16:43 +01:00
Justus Winter
f37b366154
Fix documentation. 2024-02-09 18:16:43 +01:00
Justus Winter
b796ce1b8c
Add a progress bar to the network fetch commands. 2024-02-09 18:16:43 +01:00
Justus Winter
47ec10264e
Only print certification errors in verbose mode. 2024-02-09 18:16:43 +01:00
Justus Winter
2b49440dca
Customize http client with a user agent and timeouts. 2024-02-09 18:16:43 +01:00
Justus Winter
a78dc425d9
Repeatedly query network resources using newly discovered ids.
- This will help discover updates from WKD even if the user queried
    by fingerprint, which WKD doesn't support.
2024-02-09 18:16:43 +01:00
Justus Winter
adb911abd6
Fix indentation. 2024-02-09 18:16:43 +01:00
Justus Winter
4874225c21
Rename the net module to network to reflect the cli interface. 2024-02-09 18:16:43 +01:00
Justus Winter
3b383c9e5f
Split collecting responses and importing/emitting them up. 2024-02-09 18:16:43 +01:00
Neal H. Walfield
0d1da78356
Add a framework to format and test examples.
- The `--help` output for most subcommands includes one or more
    examples.

  - We should test these, like we test everything else.

  - Add a framework to format, and test the examples.

  - Fixes #190.

  - Also, fix some broken examples.
2024-02-09 18:08:09 +01:00
Justus Winter
825f4463de
Wrap human-readable pki output. 2024-02-08 16:23:19 +01:00
Justus Winter
8be8e04ae6
Simplify imports. 2024-02-08 14:07:46 +01:00
Justus Winter
26889b7ec2
Refactor caching of wrapping options. 2024-02-08 14:07:06 +01:00
Justus Winter
913513d2a5
Add constant for a non-breaking space. 2024-02-08 14:06:11 +01:00
Justus Winter
152be8cdc7
Support dumping multiple armor blocks in one stream.
- Fixes #41.
2024-02-08 12:36:04 +01:00
Justus Winter
9f8c6dbeff
Support inspecting multiple armor blocks in one stream.
- See #41.
2024-02-08 12:36:04 +01:00
Justus Winter
003abd46ed
Drop unused import. 2024-02-08 12:36:04 +01:00
Justus Winter
7362d3c8f0
Fix hint. 2024-02-08 12:36:04 +01:00
Justus Winter
2c319b6acb
Don't leak passwords into the process table.
- Remove the offending argument.  Without it, the linter will ask
    for passwords on the tty, aligning it with the rest of sq.
    Programmatic input of passwords is an open question, see #140.

  - Fixes #168.
2024-02-08 12:36:04 +01:00
Andriy Utkin
75559ac24c
Fix the hint message to use "sq pki link add FINGERPRINT" 2024-02-07 12:33:43 +01:00
Justus Winter
67d9c3c05e
Update iana-time-zone to avoid yanked crate. 2024-02-07 12:33:13 +01:00
Justus Winter
4105751001
Show when a revocation was issued.
- Fixes #8.
2024-02-07 12:19:06 +01:00
Justus Winter
d022a2350d
Deduplicate code. 2024-02-07 12:19:06 +01:00
Justus Winter
1259f0c237
Drop the compression-bzip2 feature, making compression mandatory.
- Fixes #42.  See #137.
2024-02-07 12:19:06 +01:00
Justus Winter
56aee171ca
Allow empty prefixes when splitting packets.
- Fixes dccae021.

  - Fixes #172.
2024-02-07 11:06:32 +01:00
Justus Winter
1e7f68a048
Escape literal data's file name when dumping packets.
- Fixes #176.
2024-02-07 10:59:43 +01:00
Justus Winter
4916eb589a
Avoid deprecated functionality. 2024-01-29 19:48:51 +01:00
Justus Winter
2bae7c8c30
Turn Autocrypt Gossip into PKI artifacts when importing. 2024-01-29 19:48:51 +01:00
Justus Winter
d2600790e6
Track the inner-most encryption layer when decrypting. 2024-01-29 19:07:14 +01:00
Justus Winter
cf39ba74d8
Make decryption and verification helpers public, add quiet mode. 2024-01-29 19:07:14 +01:00
Justus Winter
ab9c3bf875
Refactor autocrypt commands. 2024-01-29 19:07:14 +01:00