diff options
Diffstat (limited to 'src/mailman_pgp/config')
| -rw-r--r-- | src/mailman_pgp/config/mailman_pgp.cfg | 24 | ||||
| -rw-r--r-- | src/mailman_pgp/config/tests/test_config.py | 2 |
2 files changed, 17 insertions, 9 deletions
diff --git a/src/mailman_pgp/config/mailman_pgp.cfg b/src/mailman_pgp/config/mailman_pgp.cfg index 1f0999a..e975836 100644 --- a/src/mailman_pgp/config/mailman_pgp.cfg +++ b/src/mailman_pgp/config/mailman_pgp.cfg @@ -19,23 +19,23 @@ [db] # db path the PGP plugin will use to store list/user configuration (not keys!). -url = sqlite:////$DATA_DIR/pgp.db +url: sqlite:////$DATA_DIR/pgp.db [keydirs] # Key directory used to store user public keys. -user_keydir = $DATA_DIR/pgp/user_keydir/ +user_keydir: $DATA_DIR/pgp/user_keydir/ # Key directory used to store list keypairs. -list_keydir = $DATA_DIR/pgp/list_keydir/ +list_keydir: $DATA_DIR/pgp/list_keydir/ # Key directory used to store archive public keys. -archive_keydir = $DATA_DIR/pgp/archive_keydir/ +archive_keydir: $DATA_DIR/pgp/archive_keydir/ [keypairs] # Whether to autogenerate the list key on list creation. -autogenerate = yes +autogenerate: yes # Type of primary list key and its size. # Format: type:size @@ -44,7 +44,7 @@ autogenerate = yes # size is the key size or curve name for ECDSA, which can be one of: # nistp256, nistp384, nistp521, brainpoolP256r1, brainpoolP384r1, # brainpoolP512r1, secp256k1 -primary_key = RSA:4096 +primary_key: RSA:4096 # Type of list encryption subkey and its size. # Format: type:size @@ -53,9 +53,17 @@ primary_key = RSA:4096 # size is the key size or curve name for ECDH, which can be one of: # nistp256, nistp384, nistp521, brainpoolP256r1, brainpoolP384r1, # brainpoolP512r1, secp256k1 -sub_key = RSA:4096 +sub_key: RSA:4096 + +# Shred keys on list deletion? +shred: yes [queues] # The queue to which processed incoming messages are passed. -in = in_default
\ No newline at end of file +in: in_default + + +[misc] +# The lifetime for `key change` request confirmation. +change_request_lifetime: 1d diff --git a/src/mailman_pgp/config/tests/test_config.py b/src/mailman_pgp/config/tests/test_config.py index 0c2bfe7..3ad4ca2 100644 --- a/src/mailman_pgp/config/tests/test_config.py +++ b/src/mailman_pgp/config/tests/test_config.py @@ -30,7 +30,7 @@ class TestConfig(TestCase): self.assertEqual(config.name, 'pgp') def test_sections(self): - sections = sorted(['db', 'keydirs', 'keypairs', 'queues']) + sections = sorted(['db', 'keydirs', 'keypairs', 'queues', 'misc']) self.assertListEqual(sorted(config.sections()), sections) def test_db(self): |
