Add External Certificates for External Java Process
Here you see how to add external certificates for an external Java process.
Steps for Using Partitions with Self-Signed Certificates:
-
Navigate to relevant location below and edit the
essbase.cfg
file.- For Linux platform:
${DOMAIN_HOME}/config/fmwconfig/essconfig/essbase
- For Windows:
%DOMAIN_HOME%\config\fmwconfig\essconfig\essbase
- For Linux platform:
- Add the following variable to the bottom of the file and save it.
env:API_DISABLE_PEER_VERIFICATION 1
Steps for Using Java-based Clients with Self-Signed Certificates
- Run the following command if the Essbase server is configured by enabling TLS option.
- For Linux platform:
${JAVA_HOME}/bin/keytool -printcert -rfc -sslserver <external_host>:<external_port>
- For Windows:
%JAVA_HOME%\bin\keytool -printcert -rfc -sslserver <external_host>:<external_port>
- For Linux platform:
- The above command generates certificates. Copy the certificates into a text file.
- Run the command below to import the certificate to java cacerts.
- For Linux platform:
${JAVA_HOME}/bin/keytool -importcert -alias <hostname> -file <certificate_file> -noprompt -trustcacerts -keystore ${JAVA_HOME}/lib/security/cacerts -storepass Password1
- For Windows:
%JAVA_HOME%\bin\keytool -importcert -alias <hostname> -file C:\21.3_EsbInstaller\sca00jqv.txt -noprompt -trustcacerts -keystore %JAVA_HOME%\lib\security\cacerts -storepass Password1
Certificate is added to keystore.
- For Linux platform:
Caution:
The Essbase platform includes scripts in <DOMAIN HOME>/bin
that can customize the environment and behaviors of Essbase functionality. However, making changes to these domain environment or startup scripts can have unintended effects, including startup failure. Oracle recommends making changes in a test environment first. Before editing these scripts, always:
-
Stop the Essbase managed servers, using
<DOMAIN HOME>/esstools/bin/stop.sh
(on Linux), or<DOMAIN HOME>\esstools\bin\stop.cmd
(on Windows). -
In
<DOMAIN HOME>/bin
, make a backup copy of the file you want to edit. For example,On Linux
cp setStartupEnv.sh setStartupEnv_bak.sh
On Windows
copy setStartupEnv.cmd setStartupEnv_bak.cmd
-
Edit carefully, using only Oracle’s documented instructions, or working with Oracle Support.
-
Restart Essbase, using
<DOMAIN HOME>/esstools/bin/start.sh
(on Linux), or<DOMAIN HOME>\esstools\bin\start.cmd
(on Windows). Check that startup completed normally.
- Edit the relevant file:
- For Linux platform:
${DOMAIN_HOME}/bin/setDomainEnv.sh
- For Windows:
%DOMAIN_HOME%\bin\setDomainEnv.cmd
- For Linux platform:
- Replace the following line:
with the following string:JAVA_OPTIONS="${JAVA_OPTIONS}"
JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.security.SSL.ignoreHostnameVerification=true"
- Save the file.
- Stop and restart the Essbase stack instance.