Enabling or Disabling Ciphers in Directory Server
Enabling or Disabling Ciphers in Directory Server
Enabling or Disabling Ciphers in Directory Server
Security Management > Security Management Operating Procedures > Administering NetAct System Security > Hardening for NetAct
applications and services > Managing TLS version protocol and TLS cipher configuration > Managing TLS cipher configuration > Managing TLS
ciphers in directory server
To locate the right VM, see Locating the right virtual machine for a service.
Sample output
[case-sensitive password]
3. Log in to the VM hosting the dirsrv service as omc user and switch to root user.
Expected outcome
Expected outcome
When prompted for Enter LDAP password , enter the password of cn=Manager user.
Sample output
cudovm01.netact.nsn-rdnet.net/N22_FP2305/index.jsp?topic=%2Fadministering_netact_system_security_base%2Fconcepts%2Fhardening_dirsrv.html 1/5
11/7/23, 4:26 PM Enabling or disabling ciphers in directory server
nsSSL3Ciphers: +all,-
TLS_RSA_WITH_RC4_128_MD5,+TLS_RSA_WITH_RC4_128_SHA,+TLS_RSA_WITH_3DES_EDE_CBC_SHA,-
TLS_RSA_WITH_DES_CBC_SHA,-TLS_RSA_WITH_NULL_MD5,-TLS_RSA_WITH_NULL_SHA,-
TLS_DHE_DSS_WITH_DES_CBC_SHA,+TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA,-
TLS_DHE_RSA_WITH_DES_CBC_SHA,+TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA,+TLS_RSA_WITH_AES_128_CBC_SHA,+T
LS_DHE_DSS_WITH_AES_128_CBC_SHA,+TLS_DHE_RSA_WITH_AES_128_CBC_SHA,+TLS_RSA_WITH_AES_256_CBC_SHA,
+TLS_DHE_DSS_WITH_AES_256_CBC_SHA,+TLS_DHE_RSA_WITH_AES_256_CBC_SHA,+TLS_DHE_DSS_WITH_RC4_128_SH
A
6. To enable weak ciphers, use + before each cipher name. To disable weak ciphers, use - before each cipher name. For the
list of supported DirSrv ciphers, see Supported dirsrv ciphers.
7. Create a <filename>.txt file under /var/tmp directory and add the following entries:
For example:
Note:
The entry contains the result from step 5 and the modifications made to define which ciphers are enabled or disabled.
To avoid any issues, make sure that there is no space or carriage return within the one-liner entry.
Ensure that the created /var/tmp/<filename>.txt cipher file contains the needed cipher configurations because
the Enabling or disabling ciphers in directory server operation always overwrites the existing cipher configuration.
For example:
Sample output
/opt/cpf/bin/cpfrhdsconf_configure_instance_parameters.sh begins
Setting value of nsSSL3Ciphers in cn=encryption,cn=config to +all,-SSL_CK_RC4_128_WITH_MD5,-
SSL_CK_RC4_128_EXPORT40_WITH_MD5,
... -TLS_DHE_DSS_WITH_RC4_128_SHA
/opt/cpf/bin/cpfrhdsconf_configure_instance_parameters.sh ends
cudovm01.netact.nsn-rdnet.net/N22_FP2305/index.jsp?topic=%2Fadministering_netact_system_security_base%2Fconcepts%2Fhardening_dirsrv.html 2/5
11/7/23, 4:26 PM Enabling or disabling ciphers in directory server
9. Copy the created cipher file to the VM hosting the dirsrv-secondary service by entering:
For example:
Note:
When prompted, enter the password of omc user.
Sample output
10. Log in to the VM hosting the dirsrv-secondary service as omc user and switch to root user.
[root]# /opt/cpf/bin/cpfrhdsconf_configure_instance_parameters.sh --
DN='cn=encryption,cn=config' --attribute=nsSSL3Ciphers --value=$(cat /var/tmp/<filename>.txt)
For example:
Sample output
/opt/cpf/bin/cpfrhdsconf_configure_instance_parameters.sh begins
Setting value of nsSSL3Ciphers in cn=encryption,cn=config to +all,-SSL_CK_RC4_128_WITH_MD5,-
SSL_CK_RC4_128_EXPORT40_WITH_MD5,
... -TLS_DHE_DSS_WITH_RC4_128_SHA
/opt/cpf/bin/cpfrhdsconf_configure_instance_parameters.sh ends
12. Restart the directory server on the VM hosting the dirsrv-secondary service by entering:
Sample output
cudovm01.netact.nsn-rdnet.net/N22_FP2305/index.jsp?topic=%2Fadministering_netact_system_security_base%2Fconcepts%2Fhardening_dirsrv.html 3/5
11/7/23, 4:26 PM Enabling or disabling ciphers in directory server
active
13. Log in to the VM hosting the dirsrv service as omc user and switch to root user.
Sample output
active
15. Remove dirsrv and dirsrv-secondary services from the maintenance mode.
Expected outcome
Expected outcome
16. Verify that the changes are reflected by repeating step 5 on dirsrv and dirsrv-secondary VMs.
cudovm01.netact.nsn-rdnet.net/N22_FP2305/index.jsp?topic=%2Fadministering_netact_system_security_base%2Fconcepts%2Fhardening_dirsrv.html 4/5
11/7/23, 4:26 PM Enabling or disabling ciphers in directory server
© 2021 Nokia. All rights reserved.
cudovm01.netact.nsn-rdnet.net/N22_FP2305/index.jsp?topic=%2Fadministering_netact_system_security_base%2Fconcepts%2Fhardening_dirsrv.html 5/5