From 2da4955da0309dafd3918d6b5ea852aec298b77a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Tue, 11 Apr 2023 10:25:16 +0200 Subject: [PATCH] Set the revocation field when revoking a key --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 49ce8e0..e4c3c2b 100644 --- a/README.md +++ b/README.md @@ -56,8 +56,8 @@ A man page will be available by the time this filter is ready to use. Keys are stored in an SQLite format 3 database. You may access it using the `sqlite3` CLI tool or any other compatible tool. -The simplest way to revoke a key is to set its `not_after` field at the current timestamp. A new key will automatically be generated. +The simplest way to revoke a key is to set its `not_after` field at the current timestamp. A new key will automatically be generated. You may also set the `revocation` field to a different timestamp in order to publish the key when desired. ``` -UPDATE key_db SET not_after = unixepoch() WHERE selector = 'dkim-755512d8f51b4da6936d565a1ddbaf17'; +UPDATE key_db SET not_after = unixepoch(), revocation = unixepoch('now', '+20 days') WHERE selector = 'dkim-755512d8f51b4da6936d565a1ddbaf17'; ```