Skip to content
Menu
vernon.wenberg.net
vernon.wenberg.net
December 11, 2023December 11, 2023

Install certificate for LDAPS on Windows Server

To use a certificate in Windows for IIS usage, you can select the certificate in IIS bindings. It is a bit different to use a certificate for LDAPS. There are two things to keep in mind:

  • Windows will first use certificates in the NTDS store before using certificates in the Local Computer personal store.
  • When there are multiple certificates, Windows will use the certificate whose expiry date is the farthest out.

Troubleshooting Tips

  • Install Remote Administration Tools (RSAT) and use ldp.exe to query/connect to your LDAP server.
  • Query LDAP server using ldap-utils with the following command:
    ldapsearch -x -H 'ldaps://host.server.com' -D 'username' -W sAMAccountName=username -b "dc=host,dc=com" 'uid=user' -d1
  • Use OpenSSL to query an LDAP server to view the certificate using the following command:
    openssl s_client -connect host.server.com:636

Install certificate to NTDS certificate store

  • Open mmc.exe and add the Certificate snap-in.
  • When prompted, choose “Service account”. Click next.
  • Choose “Local computer”. Click next.
  • Choose “Active Directory Domain Services”. Click Finish.
  • Import the certificate into NTDS\Personal\Certificates.

References

  • Event ID 1220 — LDAP over SSL
  • Troubleshoot LDAP over SSL connection problems
  • Enable LDAP over SSL with a third-party certification authority

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to print (Opens in new window) Print
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn

Like this:

Like Loading...

Related

Disclaimer

These posts are notes for me. These are not guides and you should not use these instructions as step-by-step instructions without knowing what they do.

Recent Posts

  • Docker Reference
  • Useful Commands for Windows Subsystem for Linux
  • FortiManager Local-In Policy
  • Mount Google Drive in Linux using rclone
  • Restore original Explorer context menus in Windows 11

Mastodon

  1. Loading Mastodon feed...

©2025 vernon.wenberg.net | Powered by WordPress and Superb Themes!
%d