Crates.io | tb-openpgp-certs |
lib.rs | tb-openpgp-certs |
version | 0.1.0 |
source | src |
created_at | 2021-01-27 18:27:06.811443 |
updated_at | 2021-01-27 18:27:06.811443 |
description | A tool to interact with TB78 (and later) OpenPGP cert storage |
homepage | |
repository | https://gitlab.com/hkos/tb-openpgp-certs |
max_upload_size | |
id | 347411 |
size | 119,374 |
This is a tool to interact with TB78 (and later) OpenPGP cert storage. It only deals with "public keys", private keys are not handled.
CAUTION: This tool is a hack to interact with Thunderbird's OpenPGP certificate storage. It might eat your keyring (see below).
Three parameters are needed to import a Keylist into the Thunderbird databases:
The Gpgsync demo Keylist can be imported into Thunderbird like this:
$ tb-openpgp-certs -p ~/.thunderbird/foobar.default/ import keylist https://raw.githubusercontent.com/firstlookmedia/gpgsync/develop/example-keylist/keylist.json --ca 4CA5857F960C8A78D82C11F36D00387A7A0206E2
Thunderbird 78+ stores public OpenPGP certificate data in two locations, in Thunderbird profile directories:
pubring.gpg
contains the actual OpenPGP certificatesopenpgp.sqlite
contains some metadata, in particular the "acceptance"
level of each certificateThis tool modifies the content of those two files.
However, note that Thunderbird does not currently reload changes from these files until it is restarted.
Before running this tool, make backups of (at least) the files
pubring.gpg
and openpgp.sqlite
, if you worry about corrupting or losing
your Thunderbird OpenPGP certificate store.