Skip to content

Commit 971c3e5

Browse files
sirainencmouse
authored andcommitted
mail_crypt: Clarify base64-encoded keys
1 parent 13fbfcf commit 971c3e5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/core/plugins/mail_crypt.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,8 @@ crypt_global_private_key main {
347347
## Base64-encoded Keys
348348

349349
Mail-crypt plugin can read keys that are base64 encoded. This is intended
350-
mostly for providing PEM keys via userdb.
350+
mostly for providing PEM keys via userdb, because it may be difficult to get
351+
userdb to return multi-line values.
351352

352353
Hence, this is possible:
353354

@@ -369,7 +370,7 @@ passdb static {
369370
password = pass
370371
fields {
371372
crypt_global_public_key_file = ecpubkey.pem
372-
crypt_global_private_key/main/private_key_file = inline:<content of ecprivkey.pem>
373+
crypt_global_private_key/main/private_key_file = inline:<base64-encoded content of ecprivkey.pem>
373374
}
374375
}
375376
```

0 commit comments

Comments
 (0)