Skip to main content
cdraper
Gold ⭐️
Jun 30, 2017 5:59 PM UTC

Extracting Active Directory LDAPS SSL Ccertificate

  • Oct 5, 2026 9:20 AM UTC
  • 1 reply
  • 6117 views
  • Translate All

When configuring LDAPS in HDP its common to see wrong certificates used or certificates without the correct chain.

To ensure the correct chain of certificates is used when configuring LDAPS you can use openssl to read the certificate from the server and save it to a file. This file can them be imported into, for example, the Ambari truststore.

echo -n | openssl s_client -connect <ad-server>:636 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /root/ldaps-cert.pem

1 reply

ramakrishnan_sa
Silver ⭐️⭐️
Jul 7, 2017 12:17 PM UTC

it is worked for me.. thanks.

Translate