Thursday, April 19, 2012

SSL trouble on Weblogic 12c (12.1) nodemanger

On 12.1 version of weblogic:
Trying to configure SSL on nodemanger.
After setting the CustomIdentityKeyStorePassPhase  and CustomIdentityPrivateKeyPassPhase attributes in the nodemanager.properties file in clear text and restarting the nodemanager,
the values are not being replaced with the encrypted value.

On 10.3.X series it is working fine and values are being encrypted.

Workaround:
If you take the nm_data.properties file from a 10.3.x version (wlserver_10.3\common\nodemanager) and place it in (wlserver_12.1\common\nodemanager) path and then run a fresh startnodemanager.sh
The  CustomIdentityKeyStorePassPhase  and CustomIdentityPrivateKeyPassPhase values in nodemanager.properties are getting encrypted and also it deletes the nm_data.properties file.

Wednesday, April 18, 2012

To encrypt clear text passwords

To encrypt a clear text value which could be used in weblogic file
run the setdomainenv from the domain folder.
java weblogic.security.Encrypt
It will ask you for password and you may enter the value to be encrypted, The resultant encrypted value could be used in any weblogic file.

Check JDBC driver version

To check the JDBC driver version

run . ./setdomainenv.sh (dot space dot slash)
traverse to

cd *\wlserver_10.3\server\lib
java -jar ojdbc6.jar (where ojdbc6.jar is the driver's jar file)

you would get the result as
Oracle 11.1.0.7.0-Production JDBC 4.0 compiled with JDK6

so 11.1.0.7.0 is the version.

for db2 driver
wlserver_12.1\server\lib\wldb2.jar

D:\work\wls\wls12.1.1\wlserver_12.1\server\lib>java -cp wldb2.jar weblogic.jdbc.db2.DB2Driver
[FMWGEN][DB2 JDBC Driver]Driver Version: 4.2.1.035064 (F044246.U015812)