|
How to create and use a Linux SSL certificate
|
|
| · | At the Linux command prompt go to the SSL certs directory and type
|
|
| · | Set access permissions on the certificate and private key file so that LDAP (slapd) can access them.
|
| Be sure to protect the unencrypted private key file "slapdkey.pem" carefully as anyone with the key information can decipher the traffic encrypted with the key in question.
|
| · | Make these changes in the OpenLDAP server configuration file slapd.conf:
|
| The TLSCACertificateFile row should be commented out since we use a self-signed certificate.
|
| · | Restart the LDAP service. If the service fails to restart you probably have failed to set correct access permissions on the certificate and private key file.
|
| · | Copy the certificate file "slapdcer.pem" from the Linux server to the Windows machine on which you are running the Admwin executable.
|
| · | Open "slapdcer.pem" with wordpad and save it as "slapdcer.cer" and select type "text document". You will see a dialog saying "You are about to save the document in a Text-Only format, which will remove all formatting. Are you sure you want to do this?" - click "Yes". (Notice that it must be opened with wordpad and not notepad; wordpad automatically converts the file from Linux format to Windows format.)
|
| · | Right-click the "slapdcer.cer" file in Explorer and select "install certificate". Windows will display a "Security warning" dialog where it says that it cannot validate that the certificate is actually from the hostname and asks if you want to install the certificate - click "Yes". Since you created and copied the certificate yourself you can definitely trust it.
|
| You can view all installed certificates in Internet Explorer > Tools > Internet options > content > certificates.
|
| If there are problems, check the Windows Event viewer system log for messages from source Schannel.
|
| Schannel, short for "Secure channel", is the Microsoft Security Support Provider DLL that implements the TLS/SSL protocols.
|