Microsoft Outlook: Control the encryption algorithm used for S/MIME.

When S/MIME certificates are issued, they usually contain a certificate extension "S/MIME Capabilities". This certificate extension is specified in RFC 4262 and can be used by compatible e-mail programs to specify the symmetric algorithms supported by the recipient of an encrypted message. The sender should then choose the strongest algorithm supported by the recipient.

Microsoft Outlook uses (if available and required) the information in the "S/MIME Capabilities" extension of a certificate. Below is a description of how it is used and which algorithms are selected.

How does Outlook behave when the extension is present and how when it is not?

Outlook behaves as follows, depending on whether the certificate extension is present or not:

  • If S/MIME Capabilities certificate extension is present in the recipient's certificate (or the information is available due to previous receipt of a signed email), the strongest algorithm from the list is selected and used.
  • If S/MIME Capabilities certificate extension in the recipient's certificate not is present, the default algorithm is configured and used

The default algorithm differs depending on the Outlook version used:

Do you know TameMyCerts? TameMyCerts is an add-on for the Microsoft certification authority (Active Directory Certificate Services). It extends the function of the certification authority and enables the Application of regulationsto realize the secure automation of certificate issuance. TameMyCerts is unique in the Microsoft ecosystem, has already proven itself in countless companies around the world and is available under a free license. It can downloaded via GitHub and can be used free of charge. Professional maintenance is also offered.

Override Outlook behavior

The default algorithm can be customized using the following registry key.

HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\office\16.0\outlook\security

If the two registry values mentioned above are configured, the "S/MIME Capabilities" (no matter whether received via a signed e-mail or present as a certificate extension) are ignored and the values configured here are permanently used.

ValueTypeDescription
UseAlternateDefaultEncryptionAlgREG_DWORDOverrides the settings in the Outlook Trust Center. The encryption algorithm set in the DefaultEncryptionAlgOID value is used.
DefaultEncryptionAlgOIDREG_SZDetermines the encryption algorithm to be used. It must be stored in the form of an OID (see table).

Possible values are:

OIDDescription
1.2.840.113549.3.73DES in CBC mode with 168 bit key length
2.16.840.1.101.3.4.1.2AES in CBC mode with 128 bit key length
2.16.840.1.101.3.4.1.22AES in CBC mode with 192 bit key length
2.16.840.1.101.3.4.1.42AES in CBC mode with 256 bit key length

Related links:

External sources

en_USEnglish