If one of your web application written using Jdeveloper need
to use a third party certificate to make an ssl call, then the following need
to be done
In this example, my ssl certificate is for oracle hcm cloud rest api call which requires ssl certificate
To import the certificate to the desired keystore we need to use ‘keytool’ available in jdk.
EX: keytool -importcert -noprompt -trustcacerts -alias hcm-aufsn4x0epa-cert -file "C:\certs\hcm-aufsn4x0epa.oracleoutsourcing.com.crt" -keystore "C:\Oracle\Middleware\wlserver_10.3\server\lib\DemoTrust.jks" -storepass DemoTrustKeyStorePassPhrase
Once it is imported. Restart the Jdeveloper and it should work.
Set the above jvm arguments in %MIDDLEWARE_HOME%\jdeveloper\jdev\bin\jdev.conf file
Once you make it work, everything goes fine. Suddenly, sometimes Jdeveloper loses whatever you did. You might get SSLHandShake exception. Reinstalling Jdeveloper and doing the same again should work.
In this example, my ssl certificate is for oracle hcm cloud rest api call which requires ssl certificate
For this we need to import the certificate to the DemmoTrust.jsk
keystore file. This file will be available in Weblogic server’s lib folder. So here it is in Jdeveloper’s integrated
weblogic server’s location %MIDDLEWARE_HOME%\ wlserver_10.3\server\libs
To import the certificate to the desired keystore we need to use ‘keytool’ available in jdk.
The command is below:
keytool -importcert -noprompt -trustcacerts -alias
YOUR_FILE_NAME_LABEL -file PATH_TO_THE_CERT_FILE_YOU_DOWNLOADED -keystore
PATH_TO_THE_JDEVELOPER_KEYSTORE -storepass DemoTrustKeyStorePassPhrase
EX: keytool -importcert -noprompt -trustcacerts -alias hcm-aufsn4x0epa-cert -file "C:\certs\hcm-aufsn4x0epa.oracleoutsourcing.com.crt" -keystore "C:\Oracle\Middleware\wlserver_10.3\server\lib\DemoTrust.jks" -storepass DemoTrustKeyStorePassPhrase
Once it is imported. Restart the Jdeveloper and it should work.
Sometimes Jdeveloper does not take it. For that additionally
Java arguments can be added
as mentioned in the following discussion https://community.oracle.com/thread/4152555
as mentioned in the following discussion https://community.oracle.com/thread/4152555
-DUseSunHttpHandler=true
-Dssl.SocketFactory.provider=sun.security.ssl.SSLSocketFactoryImpl
-Dssl.ServerSocketFactory.provider=sun.security.ssl.SSLSocketFactoryImpl
Set the above jvm arguments in %MIDDLEWARE_HOME%\jdeveloper\jdev\bin\jdev.conf file
Once you make it work, everything goes fine. Suddenly, sometimes Jdeveloper loses whatever you did. You might get SSLHandShake exception. Reinstalling Jdeveloper and doing the same again should work.
Comments
Post a Comment