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 authored and cmouse committed Oct 23, 2024
1 parent f5679f8 commit 2d52492
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 @@ -303,7 +303,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 @@ -325,7 +326,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 2d52492

Please sign in to comment.