You can configure PUB to validate the certificates of the
server. For the document generation URI to any other communication, PUB
must validate the certificates of the server.
Procedure
To add the certificates of the server, complete the following steps:
-
In Launcher.ini and Studio.ini in Document Studio and Launcher and
Server.startup file in Publishing Document Builder, set the
-Dcom.ibm.engineering.pub.certification_validation=true.
- Export the certificate:
- Add URI in browser.
- Click the padlock icon in the web browser's URL bar.
- Click Connection is secure and then click
Certificate is valid.
- On the tab, click Export.
- Import the certificate in cacerts at one of the following locations:
To import certificates in
cacerts, run the following command:
keytool -import -noprompt -trustcacerts -alias
${ANY_NAME} -file ${pem file path} -keystore ${keystore path} -storepass
changeit
- Custom Path
If you are adding the file to the custom path, add the following flags in the
properties file:
- -Djavax.net.ssl.keyStoreType
- -Djavax.net.ssl.keyStore
- -Djavax.net.ssl.keyStorePassword
Note: If the flag is enabled in Publishing Document Builder, then add the certificate
of Publishing Document Builder in cacerts.