Skip to content

Commit

Permalink
mail_crypt: Clarify base64-encoded keys
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Oct 30, 2024
1 parent 7aa8c5e commit 1eb5e54
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/core/plugins/mail_crypt.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ crypt_global_private_key main {
## Base64-encoded Keys

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

Hence, this is possible:

Expand All @@ -369,7 +370,7 @@ passdb static {
password = pass
fields {
crypt_global_public_key_file = ecpubkey.pem
crypt_global_private_key/main/private_key_file = inline:<content of ecprivkey.pem>
crypt_global_private_key/main/private_key_file = inline:<base64-encoded content of ecprivkey.pem>
}
}
```
Expand Down

0 comments on commit 1eb5e54

Please sign in to comment.