How to add a certificate to cacerts
Note: This applies to
DocuShare 7.5 Only.
Note: If DocuShare has been
upgraded in place on a server that has valid certificates installed into the
dstruststore before the upgrade then they should be auto merged into the
cacerts during the upgrade process.
DocuShare 7.5 comes
with over 200 well know public certificates. If LDAP Server requires
self-signed or private certificate to connect, it will need to be imported into
the cacerts keystore.
To import a certificate
into the DocuShare 7.5 cacerts keystore:
a copy of the certificate (.cer) into the <dshome>\jdk\conf\security directory.
a command prompt window and select Run as Administrator. This is done by right
clicking the CMD application and choosing Run as Administrator.
the command prompt window, type <dshome>\jdk\bin\keytool -import
-keystore <dshome>\jdk\lib\security\cacerts -alias ldaps -file
Note: If you are prompted to enter a password you can
leave blank and press enter or try the word changeit and press enter. Either
one should work.
C:\Xerox\Docushare\jdk\bin\keytool -import -keystore C:\Xerox\Docushare\jdk\lib\security\cacerts -alias
ldaps -file C:\Xerox\Docushare\jdk\conf\security\file.cer
that the certificate imported correctly type the following command
-list -v -keystore <dshome>\jdk\lib\security\cacerts
C:\Xerox\Docushare\jdk\bin>keytool -list -v -keystore
You should see the
certificate listed if it has been imported correctly.
Note: You can redirect the
output to a file that can be reviewed use the following command:
<dshome>\jdk\bin>keytool -list -v -keystore
November 10, 2021
Solution ID: 2117