Powered By Blogger

Wednesday, September 19, 2012

Configuring Jdeveloper 11g to work with SSL

Many times we come across situations where we need to create connection to SSL enabled weblogic server and deploy the code. Here I would like to show steps I have followed to setup Jdev for SSL.

  • Get the server certificate preferably in '.cer' extension.If you have certificate installed in your browser then you can simply export it(Tools->Internet Options->Content then certificates)
  • Copy certificate into any local folder, assume that D:\certificates
  • Open DOS prompt and import certificate into Jdev certificate trust store
DOS:\>keytool -import -alias democert  -file D:\Certificates\<certificatefile.cer> -keystore D:\Oracle\Middleware\wlserver_10.3\server\lib\DemoTrust.jks -storepass DemoTrustKeyStorePassPhrase


Parameters explanation
democert is some alias name I have given to my certificate
DemoTrustKeyStorePassPhrase is default key store password
D:\Oracle\Middleware\wlserver_10.3 is my Integrated WLS home that comes with Jdev
DemoTrust.jks is default certificate store comes with WLS(Weblogic server)

  • List certificate in store
Open DOS and run below command
D:\Oracle\Middleware\jdk160_29\bin>keytool -list -keystore   D:\Oracle\Middleware\ wlserver_10.3\ server\lib\DemoTrust.jks
Cross check output returned by above command has your certificate
If it doesn't list your certificate then import was not successful and you need to make sure import happens successfully

We need to import same certificate in below keystore also

JDK_HOME\bin>keytool -import -alias  <alias name> -file < certificate file path > -trustcacerts -keystore JDK_HOME\jre\lib\security\cacerts

Default pwd will be changeit

Restart Jdev and try to create connection to Jdev Note: When you create WLS connection in Jdev please choose 'Always use SSL' and enter SSL Port

If you still see issues with creating connection then please follow steps mentioned at
Oracle support document-ID 1338707.1

Document says-
We need to clean profile and preferences then re create connection again by the following steps:

  • Close Jdeveloper
  • Navigate to following path-C:\Documents and Settings\\Application Data\JDeveloper\system11.1.1. x.x.x.x.x
Note : Here x.x.x.x.x is some numbers
If you dont find above path then try to search for folder with name starting with 'system11.1.1'
  • Rename this directory to any other name
  • Restart Jdeveloper
  • Try to create connection
Now we will have a jdev thats totally clean with preferences set to default values

3 comments: