| 1 |
# -*-muttrc-*- |
| 2 |
## The following options are only available if you have |
| 3 |
## compiled in S/MIME support |
| 4 |
|
| 5 |
# If you compiled mutt with support for both PGP and S/MIME, PGP |
| 6 |
# will be the default method unless the following option is set |
| 7 |
# set smime_is_default |
| 8 |
|
| 9 |
# Uncomment this if you don't want to set labels for certificates you add. |
| 10 |
# unset smime_ask_cert_label |
| 11 |
|
| 12 |
# Passphrase expiration |
| 13 |
# set smime_timeout=300 |
| 14 |
|
| 15 |
# Global crypto options -- these affect PGP operations as well. |
| 16 |
# set crypt_autosign = yes |
| 17 |
# set crypt_replyencrypt = yes |
| 18 |
# set crypt_replysign = yes |
| 19 |
# set crypt_replysignencrypted = yes |
| 20 |
# set crypt_verify_sig = yes |
| 21 |
|
| 22 |
|
| 23 |
# Section A: Key Management |
| 24 |
|
| 25 |
# The default keyfile for encryption (used by $smime_self_encrypt and |
| 26 |
# $postpone_encrypt). |
| 27 |
# |
| 28 |
# It will also be used for decryption unless |
| 29 |
# $smime_decrypt_use_default_key is unset. |
| 30 |
# |
| 31 |
# It will additionally be used for signing unless $smime_sign_as is |
| 32 |
# set to a key. |
| 33 |
# |
| 34 |
# Unless your key does not have encryption capability, uncomment this |
| 35 |
# line and replace the keyid with your own. |
| 36 |
# |
| 37 |
# set smime_default_key="12345678.0" |
| 38 |
|
| 39 |
# If you have a separate signing key, or your key _only_ has signing |
| 40 |
# capability, uncomment this line and replace the keyid with your |
| 41 |
# signing keyid. |
| 42 |
# |
| 43 |
# set smime_sign_as="87654321.0" |
| 44 |
|
| 45 |
# Uncomment to make mutt ask what key to use when trying to decrypt a message. |
| 46 |
# It will use the default key above (if that was set) else. |
| 47 |
# unset smime_decrypt_use_default_key |
| 48 |
|
| 49 |
# Path to a file or directory with trusted certificates |
| 50 |
set smime_ca_location="~/.smime/ca-bundle.crt" |
| 51 |
|
| 52 |
# Path to where all known certificates go. (must exist!) |
| 53 |
set smime_certificates="~/.smime/certificates" |
| 54 |
|
| 55 |
# Path to where all private keys go. (must exist!) |
| 56 |
set smime_keys="~/.smime/keys" |
| 57 |
|
| 58 |
# These are used to extract a certificate from a message. |
| 59 |
# First generate a PKCS#7 structure from the message. |
| 60 |
set smime_pk7out_command="openssl smime -verify -in %f -noverify -pk7out" |
| 61 |
|
| 62 |
# Extract the included certificate(s) from a PKCS#7 structure. |
| 63 |
set smime_get_cert_command="openssl pkcs7 -print_certs -in %f" |
| 64 |
|
| 65 |
# Extract the signer's certificate only from a S/MIME signature (sender verification) |
| 66 |
set smime_get_signer_cert_command="openssl smime -verify -in %f -noverify -signer %c -out /dev/null" |
| 67 |
|
| 68 |
# This is used to get the email address the certificate was issued to. |
| 69 |
set smime_get_cert_email_command="openssl x509 -in %f -noout -email" |
| 70 |
|
| 71 |
# Add a certificate to the database using smime_keys. |
| 72 |
set smime_import_cert_command="smime_keys add_cert %f" |
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
# Section B: Outgoing messages |
| 77 |
|
| 78 |
# Algorithm to use for encryption. |
| 79 |
# valid choices are aes128, aes192, aes256, rc2-40, rc2-64, rc2-128, des, des3 |
| 80 |
set smime_encrypt_with="aes256" |
| 81 |
|
| 82 |
# Encrypt a message. Input file is a MIME entity. |
| 83 |
set smime_encrypt_command="openssl cms -encrypt -%a -outform DER -in %f %c" |
| 84 |
|
| 85 |
# Algorithm for the signature message digest. |
| 86 |
# Valid choices are md5, sha1, sha224, sha256, sha384, sha512. |
| 87 |
set smime_sign_digest_alg="sha256" |
| 88 |
|
| 89 |
# Sign. |
| 90 |
set smime_sign_command="openssl smime -sign -md %d -signer %c -inkey %k -passin stdin -in %f -certfile %i -outform DER" |
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
# Section C: Incoming messages |
| 95 |
|
| 96 |
# Decrypt a message. Output is a MIME entity. |
| 97 |
set smime_decrypt_command="openssl cms -decrypt -passin stdin -inform DER -in %f -inkey %k -recip %c" |
| 98 |
|
| 99 |
# Verify a signature of type multipart/signed |
| 100 |
set smime_verify_command="openssl smime -verify -inform DER -in %s %C -content %f" |
| 101 |
|
| 102 |
# Verify a signature of type application/pkcs7-mime |
| 103 |
set smime_verify_opaque_command="\ |
| 104 |
openssl smime -verify -inform DER -in %s %C || \ |
| 105 |
openssl smime -verify -inform DER -in %s -noverify 2>/dev/null" |
| 106 |
|
| 107 |
# application/pkcs7-mime ".p7m" messages should have a smime-type |
| 108 |
# parameter to tell Mutt whether it's signed or encrypted data. |
| 109 |
# |
| 110 |
# If the parameter is missing, Mutt by default assumes it's SignedData. |
| 111 |
# This can be used to change Mutt's assumption to EnvelopedData (encrypted). |
| 112 |
# |
| 113 |
# set smime_pkcs7_default_smime_type="enveloped" |
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
# Section D: Alternatives |
| 118 |
|
| 119 |
# Sign. If you wish to NOT include the certificate your CA used in signing |
| 120 |
# your public key, use this command instead. |
| 121 |
# set smime_sign_command="openssl smime -sign -md %d -signer %c -inkey %k -passin stdin -in %f -outform DER" |
| 122 |
# |
| 123 |
# In order to verify the signature only and skip checking the certificate chain: |
| 124 |
# |
| 125 |
# set smime_verify_command="openssl smime -verify -inform DER -in %s -content %f -noverify" |
| 126 |
# set smime_verify_opaque_command="openssl smime -verify -inform DER -in %s -noverify" |
| 127 |
# |