Open utterances-bot opened 3 years ago
Great Post.
After that we need to sync the KSS store information to the keystores.xml file located under the $DOMAIN_HOME/config/fmwconfig/
Note: It is suggested to have a backup of the domain folder folder before making any changes to the xml files.
Navigate to $ORACLE_HOME/oracle_common/common/bin Launch the wlst.sh, and run syncKeyStores command to sync system KSS keystore bash$ ./wlst.sh
Initializing WebLogic Scripting Tool (WLST) ... Welcome to WebLogic Server Administration Scripting Shell Type help() for help on available commands
wls:/offline> connect()
Please enter your username :
or via Enterprise Manager:
In FMW Control, Go to Weblogic Domain > System MBean Browser. Search for Operation 'syncKeyStores' In the search results, click the 'syncKeyStores' link (which takes two parameters) For p1, enter 'system'; for p2, enter 'KSS'. Click 'Invoke' button.
I want to thank you both for taking the time to document how to replace the demo identity certificate. I was using Oracle Forms (for 5 years) as a developer when it suddenly stopped working. Attempts to start the WLS_FORMS server would fail with a misleading message about an inability to connect to the node manager.
Node Manager associated with machine AdmiServer is not reachable.
I had tried everything I could think of to reinstate my environment without success. I finally found a clue in the Admin Server log: "
I'm very grateful. I had spent a couple of months trying to identify the problem and was about to give up.
Thank you for sharing! It is very motivating feedback.
On Wed, Nov 9, 2022 at 4:22 AM Blauberre @.***> wrote:
I want to thank you both for taking the time to document how to replace the demo identity certificate. I was using Oracle Forms (for 5 years) as a developer when it suddenly stopped working. Attempts to start the WLS_FORMS server would fail with a misleading message about an inability to connect to the node manager.
Node Manager associated with machine AdmiServer is not reachable.
I had tried everything I could think of to reinstate my environment without success. I finally found a clue in the Admin Server log: " <Identity certificate has expired" which ultimately led me to your article. I followed the instructions to create a new certificate, which worked exactly as you documented. Then I used the subsequent post to use Enterprise Mgr to use syncKeyStores to invoke the new certificate. That also worked as documented. Now my forms environment works as it did before.
I'm very grateful. I had spent a couple of months trying to identify the problem and was about to give up.
— Reply to this email directly, view it on GitHub https://github.com/mikhailidim/chronicler-comments/issues/15#issuecomment-1308456619, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNMKYAUZXIYQRTDMELGCWTWHNUOZANCNFSM5IEOB2TA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
The heroes we needed!
Thanks for saving me hours trying to figure this out!
Great post, thanks. But we have one problem. We have 2 nodes First I didnt notice "replacing Common name with your server hostname" I chose bi_domain name (DemoCertifFor_bi_domain) like it was before. Then after executing start.bat no one of my 2 bi servers started And I have a lot of such messages
@deniska80, thank you for sharing. I wouldn't see it as a problem since each node is supposed to have its own private/public key pair (certificate) that matches the hostname or FQDN. To make this happen:
Thanks for the answer but ive never worked with certificates before. So I dont know how to implement 2 and 3. Is there any tutorial?
Here you are:
For #2:
Oracle describes the certificate lifecycle with KSS as a certificate storage. It's for a previous version of OFMW, but the concept is the same.
https://docs.oracle.com/middleware/11119/opss/JISEC/kssadm.htm#CACEEDBE
Our managed weblogic servers doesnt use ssl. Only Node managers. Doc is about ssl on weblogic managed servers Its my mistake I didnt mention that it is all about OBIEE 12x(12.2.1.4). All ssl settings are by default. So there is no ssl listening ports on managed servers. But Node managers configured(by default) with ssl (demo store) to connect with ssl-designed services. After 5 years we faced same problem. With this manual i started first node. But cant do the same with the second one
As far as the node manager goes, you could do this. Main reason is that it gets you away from the demoidentity cert in the kss.
mkdir $DOMAIN_HOME/keystores
cd $DOMAIN_HOME/keystores
keytool -genkeypair -alias mykey -keyalg RSA -keysize 2048 -validity 1825 -dname "CN=*.company.local,OU=WLS,O=COMPANY,L=CITY,S=STATE,C=COUNTRY" -keystore identity.jks
keytool -export -alias mykey -file root.cer -keystore identity.jks -storepass MYPASS
keytool -import -alias mykey -file root.cer -keystore trust.jks -storepass MYPASS -trustcacerts -noprompt
KeyStores=CustomIdentityAndCustomTrust
CustomIdentityKeyStoreFileName=/path/to/domain_home/keystores/identity.jks
CustomIdentityKeyStorePassPhrase=MYPASS
CustomIdentityAlias=mykey
CustomIdentityPrivateKeyPassPhrase=MYPASS
cd /path/to/jdk/jre/lib/security
keytool -import -alias mykey -trustcacerts -file /path/to/domain_home/keystores/root.cer -keystore cacerts
# password for this is 'changeme'
restart the node manager. Put a calendar reminder to repeat in 5 years. Also keep a copy of the cacerts file. You can re-use it in another java installation. YMMV. Also repeat this on all the nodes in your weblogic cluster.
You could also do this for the adminserver and managed servers.
Thank you for the detailed and very accurate explanation @cocampbe. It'sonly worth adding that you can use NodeManager with the KSS as well. Instead of file CustomIdentityKeyStoreFileName to the right location:
CustomIdentityKeyStoreFileName =kss://system/myidentity
CustomIdentityKeyStoreType=KSS
Regenerating the 'DemoIdentity' certificate in WebLogic 12c
https://chronicler.tech/regenerating-the-demoidentity-certificate-in-weblogic-12c/