To run with LDAPS, you must import an LDAP certificate into the Java keystore.
If you do not already have an SSL certificate, you can generate one using the keytool command. This procedure explains how to import a self-signed certificate and install it in the keystore.
Follow these steps:
keytool -importcert -keystore installDirectory/jre/lib/security/cacerts -storepass cacertspasswd -alias capcSelfSigned -file filename.cer
Specifies the password for the cacerts keystore.
Default: changeit
The filename of the certificate.
keytool -storepasswd -keystore installDirectory/jre/lib/security/cacerts
You are prompted to provide the existing password and the new password.
keytool -list -keystore installDirectory/jre/lib/security/cacerts
Important! To enable the web services, the self-signed certificate must be in the cacerts keystore. Otherwise, you see an error in the log that reports that PKIX did not find a certificate.
|
Copyright © 2013 CA.
All rights reserved.
|
|