Skip to content

Commit ef55848

Browse files
committed
mail_crypt: Clarify base64-encoded keys
1 parent 3d78c07 commit ef55848

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
@@ -303,7 +303,8 @@ crypt_global_private_key main {
303303
## Base64-encoded Keys
304304

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

308309
Hence, this is possible:
309310

@@ -325,7 +326,7 @@ passdb static {
325326
password = pass
326327
fields {
327328
crypt_global_public_key_file = ecpubkey.pem
328-
crypt_global_private_key/main/private_key_file = inline:<content of ecprivkey.pem>
329+
crypt_global_private_key/main/private_key_file = inline:<base64-encoded content of ecprivkey.pem>
329330
}
330331
}
331332
```

0 commit comments

Comments
 (0)