How To Setup LDAPS
OpenSSL
Download OpenSSL
Use the EXE option for Win64 OpenSSL v1.1.1 d Light.
Install OpenSSL
Accept the license agreement and click next.
Use the default location and click next.
Select "The Windows system directory "
Click Install
Un-check donation options then click finish.
Add OpenSSL to the system path
Open system from the control panel.
Click on Advanced system settings.
Click on environment variables.
Edit Path in the system variables section.
Click New.
Enter the path to OpenSSL
Click ok to exit the edit environment variable window.
Click ok to exit the environment variable window.
Click ok to exit System Properties.
Open CMD and type OpenSSL to verify the path is working correctly.
Enable LDAP over SSL (LDAPS) for Microsoft Active Directory servers
The contents of the below instructions have been taken from Peter Mescalchin's article, Enable LDAP over SSL (LDAPS) for Microsoft Active Directory servers.
Microsoft active directory servers will default to offer LDAP connections over unencrypted connections (boo!).
The steps below will create a new self-signed certificate appropriate for use with and thus enabling LDAPS for an AD server. Of course, the "self-signed" portion of this guide can be swapped out with a real vendor purchased certificate if required.
Steps have been tested successfully with Windows Server 2012R2 but should work with Windows Server 2008 without modification. Requires a working OpenSSL install (ideally Linux/OSX) and (obviously) a Windows Active Directory server.