Supported Ciphers in 389-ds-base


Overview

Directory Server supports SSL and StartTLS for the secure connections. The ciphers to encrypt the data are provided by NSS which the Directory Server is linked with. Note: The following list contains up to TLS1.2, which is available >= nss 3.15

Plus, based upon the NSS library available on the system, the Directory Server supports the SSL versions in the range manner offered by the NSS library. By default, for the security reason (POODLEBLEED) SSLv3 is disabled even if it is offered by the NSS library.

Along with the changes, a few encryption related enhancements are added.

Configuration

SSL version configuration

If the server accepts the available SSL versions that NSS support except SSLv3 and lower, no SSL version parameters need to be set in cn=encryption,cn=config. It is required only when the version range restriction or enabling SSLv3 is necessary.

SSL version range parameters sslVersionMin and sslVersionMax are prepared for specifying the SSL minimum version and maximum version.

dn: cn=encryption,cn=config
sslVersionMin: minimum_version
sslVersionMax: maximum_version

The value is one of this set {SSL3, TLS1.0, TLS1.1, TLS1.2, … up to the max version available.}

For backward compatibility, cn=encryption,cn=config entry still supports the old style of SSL versions.

dn: cn=encryption,cn=config
nsSSL2: off
nsSSL3: off
nsTLS1: on

This combination is the default settings. I.e., without the nsSSL2, nsSSL3, and nsTLS1 parameters, the values {off, off, on} are internally set.

If the new range style and the old style has any conflict, the tighter rule is picked up. For instance,

dn: cn=encryption,cn=config
sslVersionMin: TLS1.1
sslVersionMax: TLS1.2
nsSSL3: on
nsTLS1: on

nsSSL3: on is ignored.

In this case,

dn: cn=encryption,cn=config
sslVersionMin: SSL3
sslVersionMax: TLS1.2

SSLv3 is not enabled since nsSSL3 is off by default.

We strongly recommend not to enable SSLv3, but if it is really needed, it could be set by enabling it in both the old style and the new range style.

dn: cn=encryption,cn=config
nsSSL3: on
sslVersionMin: SSL3

Cipher configuration

To configure the ciphers for the Directory Server, the config parameter nsSSL3Ciphers in cn=encryption,cn=config is used.

Sample encryption entry:

dn: cn=encryption,cn=config
objectClass: top
objectClass: nsEncryptionConfig
cn: encryption
nsSSLSessionTimeout: 0
nsSSLClientAuth: allowed
nsSSL3Ciphers: default
nsKeyfile: alias/slapd-ID-key3.db
nsCertfile: alias/slapd-ID-cert8.db
allowWeakCipher: off

Cipher List

Enabled by default (with no nsSSL3Ciphers or nsSSL3Ciphers: default) – nss-3.16.2-1

NSS Cipher Suite Name 389-ds-base keyword (deprecated)
TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 tls_dhe_rsa_aes_128_gcm_sha
TLS_DHE_RSA_WITH_AES_128_CBC_SHA tls_dhe_rsa_aes_128_sha
TLS_DHE_DSS_WITH_AES_128_CBC_SHA tls_dhe_dss_aes_128_sha
TLS_DHE_RSA_WITH_AES_256_CBC_SHA tls_dhe_rsa_aes_256_sha
TLS_DHE_DSS_WITH_AES_256_CBC_SHA tls_dhe_dss_aes_256_sha
TLS_DHE_RSA_WITH_AES_128_CBC_SHA256  
TLS_DHE_RSA_WITH_AES_256_CBC_SHA256  
TLS_RSA_WITH_AES_128_GCM_SHA256 tls_rsa_aes_128_gcm_sha
TLS_RSA_WITH_AES_128_CBC_SHA tls_rsa_aes_128_sha
rsa_aes_128_sha
TLS_RSA_WITH_AES_128_CBC_SHA256  
TLS_RSA_WITH_AES_256_CBC_SHA tls_rsa_aes_256_sha
rsa_aes_256_sha
TLS_RSA_WITH_AES_256_CBC_SHA256  

Available by setting +all – nss-3.16.2-1

NSS Cipher Suite Name 389-ds-base keyword (deprecated)
SSL_CK_DES_192_EDE3_CBC_WITH_MD5 desede3
SSL_CK_DES_64_CBC_WITH_MD5 des
SSL_CK_RC2_128_CBC_EXPORT40_WITH_MD5 rc2export
SSL_CK_RC2_128_CBC_WITH_MD5 rc2
SSL_CK_RC4_128_EXPORT40_WITH_MD5 rc4export
SSL_CK_RC4_128_WITH_MD5 rc4
SSL_RSA_FIPS_WITH_3DES_EDE_CBC_SHA fips_3des_sha
rsa_fips_3des_sha
SSL_RSA_FIPS_WITH_DES_CBC_SHA fips_des_sha
rsa_fips_des_sha
TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA dhe_dss_3des_sha
TLS_DHE_DSS_WITH_AES_128_CBC_SHA tls_dhe_dss_aes_128_sha
TLS_DHE_DSS_WITH_AES_256_CBC_SHA tls_dhe_dss_aes_256_sha
TLS_DHE_DSS_WITH_DES_CBC_SHA dhe_dss_des_sha
TLS_DHE_DSS_WITH_RC4_128_SHA tls_dhe_dss_rc4_128_sha
TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA dhe_rsa_3des_sha
TLS_DHE_RSA_WITH_AES_128_CBC_SHA tls_dhe_rsa_aes_128_sha
TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 tls_dhe_rsa_aes_128_gcm_sha
TLS_DHE_RSA_WITH_AES_256_CBC_SHA tls_dhe_rsa_aes_256_sha
TLS_DHE_RSA_WITH_DES_CBC_SHA dhe_rsa_des_sha
TLS_RSA_EXPORT1024_WITH_DES_CBC_SHA rsa_des_56_sha
tls_rsa_export1024_with_des_cbc_sha
TLS_RSA_EXPORT1024_WITH_RC4_56_SHA rsa_rc4_56_sha
tls_dhe_dss_1024_rc4_sha
tls_rsa_export1024_with_rc4_56_sha
TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5 rsa_rc2_40_md5
tls_rsa_rc2_40_md5
TLS_RSA_EXPORT_WITH_RC4_40_MD5 rsa_rc4_40_md5
tls_rsa_rc4_40_md5
TLS_RSA_WITH_3DES_EDE_CBC_SHA rsa_3des_sha
tls_rsa_3des_sha
TLS_RSA_WITH_AES_128_CBC_SHA rsa_aes_128_sha
TLS_RSA_WITH_AES_128_CBC_SHA tls_rsa_aes_128_sha
TLS_RSA_WITH_AES_128_GCM_SHA256 tls_rsa_aes_128_gcm_sha
TLS_RSA_WITH_AES_256_CBC_SHA rsa_aes_256_sha
TLS_RSA_WITH_AES_256_CBC_SHA tls_rsa_aes_256_sha
TLS_RSA_WITH_DES_CBC_SHA rsa_des_sha
TLS_RSA_WITH_RC4_128_MD5 rsa_rc4_128_md5
TLS_RSA_WITH_RC4_128_SHA rsa_rc4_128_sha
TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA  
TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA  
TLS_DHE_RSA_WITH_AES_128_CBC_SHA256  
TLS_DHE_RSA_WITH_AES_256_CBC_SHA256  
TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA  
TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA  
TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA  
TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA  
TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA  
TLS_ECDH_ECDSA_WITH_NULL_SHA  
TLS_ECDH_ECDSA_WITH_RC4_128_SHA  
TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA  
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA  
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256  
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256  
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA  
TLS_ECDHE_ECDSA_WITH_NULL_SHA  
TLS_ECDHE_ECDSA_WITH_RC4_128_SHA  
TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA  
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA  
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256  
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256  
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA  
TLS_ECDHE_RSA_WITH_NULL_SHA  
TLS_ECDHE_RSA_WITH_RC4_128_SHA  
TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA  
TLS_ECDH_RSA_WITH_AES_128_CBC_SHA  
TLS_ECDH_RSA_WITH_AES_256_CBC_SHA  
TLS_ECDH_RSA_WITH_NULL_SHA  
TLS_ECDH_RSA_WITH_RC4_128_SHA  
TLS_RSA_WITH_AES_128_CBC_SHA256  
TLS_RSA_WITH_AES_256_CBC_SHA256  
TLS_RSA_WITH_CAMELLIA_128_CBC_SHA  
TLS_RSA_WITH_CAMELLIA_256_CBC_SHA  
TLS_RSA_WITH_NULL_MD5  
TLS_RSA_WITH_NULL_SHA256  
TLS_RSA_WITH_NULL_SHA  
TLS_RSA_WITH_SEED_CBC_SHA  

Available by setting +all but weak – nss-3.16.2-1

NSS Cipher Suite Name 389-ds-base keyword (deprecated)
SSL_CK_DES_192_EDE3_CBC_WITH_MD5 desede3
SSL_CK_DES_64_CBC_WITH_MD5 des
SSL_CK_RC2_128_CBC_EXPORT40_WITH_MD5 rc2export
SSL_CK_RC2_128_CBC_WITH_MD5 rc2
SSL_CK_RC4_128_EXPORT40_WITH_MD5 rc4export
SSL_CK_RC4_128_WITH_MD5 rc4
SSL_RSA_FIPS_WITH_3DES_EDE_CBC_SHA fips_3des_sha
rsa_fips_3des_sha
SSL_RSA_FIPS_WITH_DES_CBC_SHA fips_des_sha
rsa_fips_des_sha
TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA dhe_dss_3des_sha
TLS_DHE_DSS_WITH_DES_CBC_SHA dhe_dss_des_sha
TLS_DHE_DSS_WITH_RC4_128_SHA tls_dhe_dss_rc4_128_sha
TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA dhe_rsa_3des_sha
TLS_DHE_RSA_WITH_DES_CBC_SHA dhe_rsa_des_sha
TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA  
TLS_ECDH_ECDSA_WITH_RC4_128_SHA  
TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA  
TLS_ECDHE_ECDSA_WITH_RC4_128_SHA  
TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA  
TLS_ECDHE_RSA_WITH_RC4_128_SHA  
TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA  
TLS_ECDH_RSA_WITH_RC4_128_SHA  
TLS_RSA_EXPORT1024_WITH_DES_CBC_SHA rsa_des_56_sha
tls_rsa_export1024_with_des_cbc_sha
TLS_RSA_EXPORT1024_WITH_RC4_56_SHA rsa_rc4_56_sha
tls_dhe_dss_1024_rc4_sha
tls_rsa_export1024_with_rc4_56_sha
TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5 rsa_rc2_40_md5
tls_rsa_rc2_40_md5
TLS_RSA_EXPORT_WITH_RC4_40_MD5 rsa_rc4_40_md5
tls_rsa_rc4_40_md5
TLS_RSA_WITH_3DES_EDE_CBC_SHA rsa_3des_sha
tls_rsa_3des_sha
TLS_RSA_WITH_DES_CBC_SHA rsa_des_sha
TLS_RSA_WITH_RC4_128_MD5 rsa_rc4_128_md5
TLS_RSA_WITH_RC4_128_SHA rsa_rc4_128_sha

Unavailable – nss-3.16.2-1

NSS Cipher Suite Name 389-ds-base keyword (deprecated)
SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA fortezza
SSL_FORTEZZA_DMS_WITH_RC4_128_SHA fortezza_rc4_128_sha
SSL_FORTEZZA_DMS_WITH_NULL_SHA fortezza_null
TLS_DH_DSS_WITH_AES_128_CBC_SHA tls_dh_dss_aes_128_sha
TLS_DH_RSA_WITH_AES_128_CBC_SHA tls_dh_rsa_aes_128_sha
TLS_DH_DSS_WITH_AES_256_CBC_SHA tls_dss_aes_256_sha
TLS_RSA_WITH_AES_256_CBC_SHA tls_rsa_aes_256_sha
TLS_DH_RSA_WITH_AES_256_CBC_SHA tls_rsa_aes_256_sha
TLS_DH_DSS_WITH_CAMELLIA_128_CBC_SHA  
TLS_DH_RSA_WITH_CAMELLIA_128_CBC_SHA  
TLS_DH_DSS_WITH_CAMELLIA_256_CBC_SHA  
TLS_DH_RSA_WITH_CAMELLIA_256_CBC_SHA  
TLS_DHE_DSS_WITH_AES_128_GCM_SHA256 tls_dhe_dss_aes_128_gcm_sha
TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256  
TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256  
TLS_ECDHE_ECDSA_WITH_NULL_SHA  
TLS_ECDHE_RSA_WITH_NULL_SHA  
TLS_ECDH_RSA_WITH_NULL_SHA  
TLS_ECDH_ECDSA_WITH_NULL_SHA  
TLS_RSA_WITH_NULL_SHA rsa_null_sha
TLS_RSA_WITH_NULL_SHA256  
TLS_RSA_WITH_NULL_MD5 rsa_null_md5

Logging

The enabled cipher list is logged in the error log (/var/log/dirsrv/slapd-ID/errors) at the startup. E.g.,

[..] - SSL alert: Configured NSS Ciphers
[..] - SSL alert:   TLS_RSA_WITH_AES_128_GCM_SHA256: enabled
[..] - SSL alert:   TLS_RSA_WITH_AES_128_CBC_SHA: enabled
[..] - SSL alert:   TLS_RSA_WITH_AES_128_CBC_SHA256: enabled

If the config log level is set, all the ciphers are logged with “enabled” or “disabled”. The weak ciphers are also noted. E.g.,

[..] - SSL alert: Configured NSS Ciphers
[..] - SSL alert:   TLS_DHE_DSS_WITH_DES_CBC_SHA: disabled, (WEAK CIPHER)
[..] - SSL alert:   TLS_RSA_WITH_NULL_SHA: disabled, (MUST BE DISABLED)
[..] - SSL alert:   TLS_RSA_WITH_CAMELLIA_256_CBC_SHA: enabled

Misc

nsSSLSupportedCiphers and nsSSLEnabledCiphers in cn=encryption,cn=config

Searching “cn=encryption,cn=config” returns nsSSLEnabledCiphers in addition to nsSSLSupportedCiphers

$ ldapsearch [...] -D 'cn=directory manager' -w <passwd> -b "cn=encryption,cn=config" 
...
nsSSLSupportedCiphers: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256::AES-GCM::AEAD:
...
nssslenabledciphers: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256::AES-GCM::AEAD::128
...
nsSSLEnabledCiphers: TLS_RSA_WITH_SEED_CBC_SHA::SEED::SHA1::128

Note that the attribute types are virtual, thus they cannot be used in the filter.

Last modified on 1 March 2024