Commit Graph

1130 Commits

Author SHA1 Message Date
Justus Winter
14cef16528
Use cert designators for sq key delete.
- See #207.
2024-10-22 18:12:48 +02:00
Justus Winter
5007be4cdf
Move the command line parser for sq key delete to its own module. 2024-10-22 18:01:08 +02:00
Justus Winter
8bd5d4d026
Use cert designators for sq key export.
- See #207.
2024-10-22 18:01:08 +02:00
Justus Winter
c99c4e4712
Introduce a symbolic name for the default empty options. 2024-10-22 15:47:10 +02:00
Justus Winter
0d88aaf6d9
Move the command line parser for sq key export to its own module. 2024-10-22 15:46:57 +02:00
Justus Winter
191c70599e
Use cert designators for sq key list.
- See #207.
2024-10-22 15:46:57 +02:00
Justus Winter
5cf7d1db4c
Move the command line parser for sq key list to its own module. 2024-10-22 15:46:57 +02:00
Justus Winter
34a349544e
Use cert designators for sq inspect.
- See #207.
2024-10-22 15:46:57 +02:00
Justus Winter
9e4abf23f1
Use cert designators for sq verify.
- See #207.
2024-10-22 15:46:57 +02:00
Justus Winter
3ec39ac611
Use cert designators for sq decrypt.
- See #207.
2024-10-22 15:46:57 +02:00
Justus Winter
8c47caaee9
Change --cert to only look up by primary key fingerprint.
- See #207.
2024-10-22 15:45:59 +02:00
Justus Winter
964b5d18ef
Raise limit of stdout and stderr shown in tests. 2024-10-22 11:50:30 +02:00
Justus Winter
d76a856f0b
Add filters to sq pki link list.
- Fixes #210.
2024-10-22 11:27:12 +02:00
Justus Winter
d4a8d862ee
Adapt fingerprint, user ID pairs display in link listings.
- And display each parameter on a line of its own.
2024-10-22 11:27:09 +02:00
Justus Winter
33acc46291
Tweak edge annotations. 2024-10-22 11:27:07 +02:00
Justus Winter
ffe0b7df25
Rework how fingerprint, user ID pairs are displayed.
- Displaying them on one line is infeasible: first, v6 fingerprints
    will be 64 hex digits long, filling a typical line almost by
    itself.  Second, many of the composite user IDs in use today are
    quite long by itself, and wrapping user IDs is not nice.

  - Instead, display them in two lines, with line art emphasizing the
    fact that they are a tuple.
2024-10-22 11:27:04 +02:00
Justus Winter
af7b7e3dc9
Merge sq autocrypt import into sq cert import, remove others.
- Merge `sq autocrypt import` has been merged into `sq cert import`.

  - Remove `sq autocrypt decode` and `sq autocrypt encode-sender`
    without substitute.

  - Fixes #187.
2024-10-21 16:56:55 +02:00
Justus Winter
6a48c1c88f
Implement AddAssign for ImportStats. 2024-10-21 16:45:40 +02:00
Justus Winter
d452369ac6
Parse certificates from a Dup reader. 2024-10-21 15:24:08 +02:00
Justus Winter
54c70fb597
Remove the Autocrypt gossip CA framework.
- Fixes #350.
2024-10-21 14:44:43 +02:00
Justus Winter
39d2e727f7
Print error chains at the top level. 2024-10-21 14:28:52 +02:00
Justus Winter
3f139ac10f
Improve formatting of error chains. 2024-10-21 14:28:15 +02:00
Justus Winter
2eba8c686d
Remove obsolete TODOs. 2024-10-21 14:21:30 +02:00
Justus Winter
6199119811
Make sq inspect handle non-OpenPGP data.
- Incidentally, this fixes #197.
2024-10-21 14:21:28 +02:00
Justus Winter
e1f308272d
Fix hint formatting. 2024-10-21 14:21:25 +02:00
Justus Winter
12efeceac5
Enable the use of state in the subplot tests. 2024-10-21 13:02:24 +02:00
Justus Winter
68cac26f21
Set a SEQUOIA_HOME directory for the subplot tests. 2024-10-21 13:00:08 +02:00
Justus Winter
bcb5c39aca
Remove the DWIM interface from sq cert export.
- The cert designator framework is expressive enough.  Just be
    explicit.
2024-10-21 12:39:57 +02:00
Justus Winter
db0fe0873d
Fix mutability of recipient in accessors. 2024-10-21 12:39:55 +02:00
Justus Winter
1d1a41ac3d
Only export certificates with authenticated bindings.
- When exporting certificates selected by user IDs (i.e. --email,
    --userid, --domain, or --grep), authenticate the bindings and
    export only those certificates that can be authenticated.

  - Fixes #182.
2024-10-21 11:37:10 +02:00
Justus Winter
b98ffa6514
Remove obsolete todos. 2024-10-19 00:29:19 +02:00
Justus Winter
3942d9892e
Hide certification and key creation times for shadow CAs.
- It is confusing to see a creation time of 2002-02-20.  Hide it.
2024-10-19 00:28:36 +02:00
Justus Winter
8f65d9a79a
Remove redundant trust amount information.
- This is precisely the same amount as before in the same sentence.
2024-10-19 00:28:34 +02:00
Justus Winter
9510870b8f
Use non-breaking hyphens to format dates. 2024-10-19 00:28:31 +02:00
Justus Winter
efb35f517f
Filter out self-signatures when --gossip is given. 2024-10-19 00:28:28 +02:00
Justus Winter
1300f3dd59
Remove now unused non-concise human readable output format. 2024-10-19 00:28:26 +02:00
Justus Winter
17deb24057
Make the path output a little less dense. 2024-10-19 00:27:55 +02:00
Justus Winter
cef1b792dd
Merge the path printing into the concise human readable output.
- Having a single output makes it easier to keep the output
    consistent.
2024-10-19 00:27:48 +02:00
Justus Winter
bc61c8a84c
Align the output of sq cert list with sq key list. 2024-10-18 17:49:10 +02:00
Justus Winter
fece9407ef
Align timestamp formatting. 2024-10-18 17:43:51 +02:00
Justus Winter
3c80873511
Align hint formatting. 2024-10-18 17:10:11 +02:00
Justus Winter
eb1545591c
Split sq network wkd publish --rsync into two to avoid ambiguity.
- The argument `sq network wkd --rsync` which previously had an
    optional value argument has been split into two arguments, a
    boolean `--rsync` to enable the use of rsync, and `--rsync-path`,
    which implies `--rsync`, to specify a path to the local rsync
    executable.

  - Fixes #370.
2024-10-18 17:02:02 +02:00
Justus Winter
2604bf2e9c
Fix documentation. 2024-10-18 16:32:31 +02:00
Justus Winter
d07e387eab
Rename sq verify --signer-cert to --signer.
- Fixes #372.
2024-10-18 16:32:11 +02:00
Justus Winter
b2f0e579ba
Simplify crate::load_keys. 2024-10-18 16:17:06 +02:00
Justus Winter
a3d2becc90
Simplify crate::load_certs. 2024-10-18 16:15:37 +02:00
Justus Winter
2a40afef11
Add --all flag to sq network wkd publish and dane generate.
- Fixes #273.
2024-10-18 16:01:51 +02:00
Justus Winter
361e68a248
Use imperative mood to describe the cert and user ID designators. 2024-10-18 14:49:59 +02:00
Justus Winter
75577c65c0
Make sq --home=default work.
- Home::new(None) doesn't select the default location, it honors
    SEQUOIA_HOME.
2024-10-18 14:49:58 +02:00
Justus Winter
cea028e582
Remove sq network dane generate --skip.
- This didn't do what it said on the tin (it said to skip expired
    certs, but Cert::with_policy doesn't care about expiration).
    Further, asking to publish a cert that doesn't have a user ID in
    that domain should probably just be an error.

  - Previously, the now removed `sq network wkd generate` command also
    had a `--skip` flag, but the replacement `sq network wkd publish`
    never had that flag.

  - Fixes #371.
2024-10-18 14:49:57 +02:00