How do I examine LDAP server SSL certificate and extract signing certificates for integrating the Vault server with LDAP over LDAPS?

How do I examine LDAP server SSL certificate and extract signing certificates for integrating the Vault server with LDAP over LDAPS?

89
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 13:03 PM


Objective


How do I examine LDAP server SSL certificate and extract signing certificates for integrating the Vault server with LDAP over LDAPS?

Environment


N/A Privileged Access Manager (PAM, self-hosted) Vault Server

Procedure


  • Note: the links are not Idira owned, please visit at own risk.
  • Download and copy OpenSSL binaries into a folder on the file system http://gnuwin32.sourceforge.net/packages/openssl.htm
  • If performing the certificate retrieval from the vault server, temporarily open outbound Firewall rule in Windows Firewall to allow communication to the LDAP server
  • Run the following command to retrieve certificate.
    openssl s_client -showcerts -connect ldap-server:port
  • Save the certificate ( the lines between ------BEGIN CERTIFICATE------ and -------END CERTIFICATE-----, including these lines) into a .cer file
  • Double-click on the certificate file and select Certification Path tab
  • Click on each certificate in the certification chain, go to Details, and save the certificate using Copy to File... button
  • Store the certificate in the Vault Server's Computer Account certificate store as instructed in the "Configuring the Vault to Recognize LDAP Directories" section of the Installation guide.
For additional details on OpenSSL debug commands, please see the online man page at http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-5.2/man1/openssl.1?query=openssl&arch=i386&manpath=OpenBSD-5%2e2. 


Additional Information


Details

Q:
How do I examine LDAP server SSL certificate and extract signing certificates for integrating the Vault server with LDAP over LDAPS?
 
A:
  • Download and copy OpenSSL binaries into a folder on the file system http://gnuwin32.sourceforge.net/packages/openssl.htm
  • If performing the certificate retrieval from the vault server, temporarily open outbound Firewall rule in Windows Firewall to allow communication to the LDAP server
  • Run the following command to retrieve certificate.
    openssl s_client -showcerts -connect ldap-server:port
  • Save the certificate ( the lines between ------BEGIN CERTIFICATE------ and -------END CERTIFICATE-----, including these lines) into a .cer file
  • Double-click on the certificate file and select Certification Path tab
  • Click on each certificate in the certification chain, go to Details, and save the certificate using Copy to File... button
  • Store the certificate in the Vault Server's Computer Account certificate store as instructed in the "Configuring the Vault to Recognize LDAP Directories" section of the Installation guide.
For additional details on OpenSSL debug commands, please see the online man page at http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-5.2/man1/openssl.1?query=openssl&arch=i386&manpath=OpenBSD-5%2e2. 



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001KEYCA2&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail