How to find the SSL certificate used by LDAPS

How to find the SSL certificate used by LDAPS

Sometimes you are dumped in to situations at short notice and need to get an answer in fairly short notice. It was in this type of situation that I found myself when I popped in to a friends office and they had a query about certificates for their developer team.

Sometimes you are dumped in to situations at short notice and need to get an answer in fairly short notice. It was in this type of situation that I found myself when I popped in to a friends office and they had a query about certificates for their developer team.Â

It came down to knowing which certificate was being presented by a server for secure LDAP. Their friendly IT bod wasn’t available and I didn’t have access to the server. They just needed to be able to identify the certificate.Â

It turns out that OpenSSL was our friend. Grabbing the Windows version of OpenSSL and extracting the exe was the first point of call.

Then we used the following command, replacing servername with the actual server name

This gave us the following output which was enough to identify the certificate and the dev-pidgeon-chap was happy.

 

 

Author

Oliver Marshall

Oliver works as a Director at Oakson who provide absolutely awesome IT support in Brighton, UK. Out of hours he’s a runner with a limp, has a board game addiction and a owns a dog that looks like a badger.

Show Buttons
Hide Buttons

Before you go...

or
Subscribe to my newsletter

If you enjoyed this article then why not let me know.