Reformat the revocation SQL query
This commit is contained in:
parent
7674b26c16
commit
964fc2421a
1 changed files with 6 additions and 1 deletions
|
@ -59,5 +59,10 @@ Keys are stored in an SQLite format 3 database. You may access it using the `sql
|
|||
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(), revocation = unixepoch('now', '+20 days') WHERE selector = 'dkim-755512d8f51b4da6936d565a1ddbaf17';
|
||||
UPDATE key_db \
|
||||
SET \
|
||||
not_after = unixepoch(), \
|
||||
revocation = unixepoch('now', '+20 days') \
|
||||
WHERE \
|
||||
selector = 'dkim-755512d8f51b4da6936d565a1ddbaf17';
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue