How to regenerate DemoIdentity.jks and DemoTrust.jks


How to regenerate DemoIdentity.jks and DemoTrust.jks file for weblogic


1. Regenerate DemoIdentity.jks

We can use below commands to regenerate DemoIdentity.jks

[orcloim@mydmain]$ export PATH=$PATH:/u01/java/jdk1.8.0_152/jre/bin

[orcloim@mydmain]$ java utils.CertGen -keyfilepass DemoIdentityPassPhrase -certfile democert -keyfile demokey -strength 1024
Error: Could not find or load main class utils.CertGen

Export CLASSPATH environment variable

[orcloim@mydmain]$ export CLASSPATH=$CLASSPATH:$OIM_HOME/wlserver/server/lib/weblogic.jar
[orcloim@mydmain]$ java utils.CertGen -keyfilepass DemoIdentityPassPhrase -certfile democert -keyfile demokey -strength 1024
[orcloim@mydmain]$ java utils.ImportPrivateKey -keystore DemoIdentity.jks -storepass DemoIdentityKeyStorePassPhrase -keyfile demokey.pem -keyfilepass DemoIdentityPassPhrase -certfile democert.pem -alias demoidentity
[orcloim@mydmain]$ keytool -list -v -keystore DemoIdentity.jks

copy DemoIdentity.jks file <OIM_DOMAIN>/security/ directory and restart admin and managed servers

2. Regenerate DemoTrust.jks

[orcloim@mydmain]$ cd <WL_HOME>/server/bin/
[orcloim@mydmain]$ . ./ 
[orcloim@mydmain]$ keytool -importcert -trustcacerts -alias wlscertgencab -keystore DemoTrust.jks -storepass DemoTrustKeyStorePassPhrase -file $WL_HOME/server/lib/CertGenCA.der

How to Configure OUD to accept SSL using a Self-Signed Certificate

Need to enable SSL for OUD with self-signed certificate.

Steps to create SSL self-signed certificate for OUD (

1. Prepare keystore directory:

cd /u01/mwOUD/asinst_2/OUD
mkdir config/sslv101
touch sslv101/
chmod 666 config/sslv101/

Add password to above file. In my case, I have added P@ssw0rd to file. Continue reading

How to reset Weblogic Administrator password

Need to change weblogic password.

Steps to reset/change weblogic password:
1. set environment variable like MW_HOME, WL_HOME, CLASSPATH
2. Delete data directory under <DOMAIN_HOME>/servers/AdminServer
3. Take backup of *.ldift <DOMAIN_HOME>/security
4. run “java weblogic Dev@1234 .”
5. Update with new password and start

Continue reading

How to Decrypt SqlDeveloper connections passwords

To recover password we need two files named connections.xml & product-preferences.xml .
Above files can be available in below locations

On Windows :
%APPDATA%\SQL Developer\system*\o.jdeveloper.db.connection*\connections.xml
%APPDATA%\SQL Developer\system*\o.sqldeveloper*\product-preferences.xml

On Linux :

Continue reading