Skip to main content

How to Renew Demo Identity Certificate thats Expired for DemoIdentity in Weblogic

How to Renew Demo Identity Certificate thats Expired for DemoIdentity in Weblogic


Error

DemoIdentity identity certificate expired and getting the following error in the logs:

 
 <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias DemoIdentity from the kss keystore file kss://system/demoidentity.>
<Alert> <Security> <BEA-090154> <Identity certificate has expired:


Solution:

1. Login to EM console.

2. Navigate to <domain name> [ eg :- base_domain ]

3. Click on the drop down Weblogic Domain -> Security -> Keystore

4. Expand the system folder.

5. Select the demoidentity -> click Manage

6. It will prompt for password , enter the password DemoIdentityKeyStorePassPhrase

7. It will open the Manage Certificates option.

8. Select the existing 'DemoIdentity' certificate which is expired -> Select Delete.

(NOTE: You need to click the refresh button on the top right to see the changes)

9. It will ask to enter password -> Enter the password as : DemoIdentityPassPhrase

10. Click on Generate Keypair.

11. Provide the same information as before.

Alias name: DemoIdentity
Subject Name: DemoCertFor_base_domain
Password: DemoIdentityPassPhrase

12. You can see that a self signed certificate is created.



Now we need to sync the KSS store information to the local keystores.xml file located under the $DOMAIN_HOME/config/fmwconfig/

Note: It is suggested to have a backup of your domain before making any changes to the domain, but it is not required.

1. Navigate to $ORACLE_HOME/oracle_common/common/bin

2. Launch the wlst.sh, and run syncKeyStores command to sync system KSS keystore

Example below:

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 :<username>
<username>
Please enter your password :
Please enter your server URL [t3://localhost:7001] :t3://<admin hostname>:<admin port>
t3://<admin hostname>:<admin port>
Connecting to t3://<admin hostname>:<admin port> with userid <username> ...
Successfully connected to Admin Server "AdminServer" that belongs to domain "base_domain".

Warning: An insecure protocol was used to connect to the server.
To ensure on-the-wire security, the SSL port or Admin port should be used instead.

wls:/base_domain/serverConfig/> syncKeyStores(appStripe='system', keystoreFormat='KSS')
Location changed to domainRuntime tree. This is a read-only tree
with DomainMBean as the root MBean.


Keystore sync successful.

3. Restart the admin server followed by managed server(s).

NOTE: If you have multiple nodes you'll also need to run the WLST steps to sync keystores.xml on each remote host.

Before starting the nodemanager on a remote host, start a managed server manually to synchronize with $DOMAIN_HOME including keystores.xml of the adminserver.

For example: $DOMAIN_HOME/bin/startManagedWebLogic.sh <SERVER_NAME> <ADMIN_URL>

4. Verify the error is logs and SSL services should be running.




Please do like and subscribe to my youtube channel: https://www.youtube.com/@foalabs If you like this post please follow,share and comment

Comments

Popular posts from this blog

WebLogic migration to OCI using WDT tool

WebLogic migration to OCI using WDT tool Oracle WebLogic Deploy Tool (WDT) is an open-source project designed to simplify and streamline the management of Oracle WebLogic Server domains. With WDT, you can export configuration and application files from one WebLogic Server domain and import them into another, making it a highly effective tool for tasks like migrating on-premises WebLogic configurations to Oracle Cloud. This blog outlines a detailed step-by-step process for using WDT to migrate WebLogic resources and configurations. Supported WLS versions Why Use WDT for Migration? When moving Oracle WebLogic resources from an on-premises environment to Oracle Cloud (or another WebLogic Server), WDT provides an efficient and reliable approach to: Discover and export domain configurations and application binaries. Create reusable models and archives for deployment in a target domain. Key Pre-Requisites Source System: An Oracle WebLogic Server with pre-configured resources such as: Applica...

How to Validate TDE Wallet Password in Oracle Database

How to Validate TDE Wallet Password in Oracle Database Validating the Transparent Data Encryption (TDE) wallet password is crucial, especially when ensuring that the password is correct without using the OPEN or CLOSE commands in the database. This blog post explains a straightforward method to validate the TDE password using the mkstore utility. Steps to Validate TDE Wallet Password Follow these steps to validate the TDE wallet password: Step 1: Copy the Keystore/Wallet File Navigate to your existing TDE wallet directory. Copy only the ewallet.p12 file to a new directory. If a cwallet.sso file exists, do not copy it . The absence of cwallet.sso ensures that the wallet does not use auto-login, forcing the utility to prompt for the password. Step 2: Validate Using mkstore Use the mkstore utility to check the contents of the wallet file. The mkstore utility will prompt you for the TDE wallet password, allowing you to validate its correctness. Command Syntax To display the conten...

How to Create macOS Catalina ISO File

  How to Create macOS Catalina ISO File Please note these steps need to be performed on a Apple Mac System to generate an iso. Steps: 1) Download macOS Catalina From App Store or Apple download 2) Please note once you download it will be in dmg format. 3) Open Terminal in MAC.  from the top-right corner open up Spotlight.  Type in Terminal and hit Enter. 4)  Mount it to your macOS hdiutil attach /tmp/Catalina.dmg -noverify -mountpoint /Volumes/Catalina 5) Create macOS Catalina Installer sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/Catalina --nointeraction 6) Unmount Catalina Disk hdiutil detach /volumes/Install\ macOS\ Catalina 7) Convert the DMG file to an ISO file hdiutil convert /tmp/Catalina.dmg -format UDTO -o ~/Desktop/Catalina.cdr 8) Rename and Move to Desktop mv ~/Desktop/Catalina.cdr ~/Desktop/Catalina.iso Now we can use this iso on any system and install on virtual machines.