Issue Reported - WLS Admin Server startup hangs forever, with a warning message DemoIdentity Certificate Expired.
Assumption - Certificate Expired in 10 Dec 2022
Resolution - A quick workaround in this case is
- Stop all products running on that machine
- Backup Domain and Oracle Home
- Change the date on your machine to a date in past - example 16 Oct 2022
- This will allow you to startup Admin Server and access EM console
- Change the date on your machine to current date .
- Login to EM console and renew the DemoIdentity Certificate with below steps
- run syncKeyStores command to sync system KSS keystore
- Restart all Weblogic Services
- Login to EM console.
- Navigate to <domain name> [ eg :- base_domain ]
- Click on the drop down Weblogic Domain -> Security -> Keystore
- Expand the system folder.
- Select the demoidentity -> click Manage
- It will prompt for password , enter the password DemoIdentityKeyStorePassPhrase
- It will open the Manage Certificates option. Note down the certificate details [ DemoIdentity: CN=DemoCertFor_forms_domain October 16, 2022 ]
- Select the existing DemoIdentity certificate which is expired -> Select Delete.
- It will ask to enter password -> Enter the password as : DemoIdentityPassPhrase
- Click on Generate Keypair.
- Provide the same information as before
Password as : DemoIdentityPassPhrase
- Now we need to sync the KSS store information to the keystores.xml file located under the $DOMAIN_HOME/config/fmwconfig/
- Navigate to $ORACLE_HOME/oracle_common/common/bin
- Launch the wlst.sh, and run syncKeyStores command to sync system KSS keystore
- Restart all Weblogic Services
Update
"<OHS_INSTANCE_NAME>_default" keystore in "OHS"
stripe which is used by Oracle HTTP Server (OHS)
1. Launch Fusion Middleware Control. (http://<HOSTNAME>:<PORT>/em)
2. From the "WebLogic Domain" menu, select "Security" then "Keystore".
3. Select "<OHS_INSTANCE_NAME>_default" keystore in the "OHS" stripe. Example --> ohs1_default
If "OHS" stripe does not exist, Create "OHS" stripe before this step.
If "<OHS_INSTANCE_NAME>_default" does not exist under "OHS" stripe, Create "<OHS_INSTANCE_NAME>_default"4. Click Manage.
5. If "democert" alias exists, Select it then Delete it
6. Click "Generate Keypair" to generate a private/public key pair with the following parameters.
a. Alias : "democert"
b. Common name : "localhost"7. <OHS_INSTANCE_NAME> in HTTP Server from Target Navigation
8. Navigate [Oracle HTTP Server] -> [Security] -> [Keystore]
9. "Lock and Edit", Then Select "<OHS_INSTANCE_NAME>_default" keystore
10. Click "Export Keystore to Wallet", then "Activate Changes"
No comments:
Post a Comment