Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

Securing openldap-servers with SSL/TLS on RHEL5

Updated on

Request a new translation or translation update

A translation for your language preference does not exist. Click below to request a translation for your selected language.

Submit request

Securing openldap-servers (openldap-servers-2.3.43-28.el5_10) that uses openssl

This article is part of the Securing Applications Collection

Configuration File

   /etc/openldap/slapd.conf

shortform

TLSCACertificateFile    /etc/pki/tls/certs/slapd.int.pem
TLSCertificateFile      /etc/pki/tls/certs/slapd.pem
TLSCertificateKeyFile   /etc/pki/tls/private/slapd.key
TLSCipherSuite          kDH:AES
TLSDHParamFile          /etc/pki/tls/private/slapd.dh.params

Protocols

There is no control over the protocol level used. clients can use SSLv3 or TLSv1.0

Ciphers

    TLSCipherSuite          kDH:AES

Strongest available ciphers only

Certificate Handling

openldap server expects separate PEM format files for key and certificate, and another for the CA chain.

Key File

TLSCertificateKeyFile   /etc/pki/tls/private/slapd.key

key should be readable only by the user ldap

Certificate File

TLSCertificateFile      /etc/pki/tls/certs/slapd.pem

This is just the server certificate

Certificate Authority Chain

TLSCACertificateFile    /etc/pki/tls/certs/slapd.int.pem

Intermediate and Root certificates for the TLSCertificateFile

DH Parameters

TLSDHParamFile          /etc/pki/tls/certs/slapd.dh.params

Use of stronger ciphers can be enabled by ensuring there is a Diffie-Helman parameter file available
This file should be renewed on a periodic (weekly) basis.

openssl dhparam -out /etc/pki/tls/private/slapd.dh.params.tmp 1024
mv /etc/pki/tls/private/slapd.dh.params.tmp  /etc/pki/tls/private/slapd.dh.params

This solution is part of Red Hat's fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Red Hat LinkedIn YouTube Facebook X, formerly Twitter

Quick Links

Help

Site Info

Related Sites

© 2026 Red Hat