3.2 Create Keystore
You can create the keystore using the command to obtain the identity store.
To create the keystore, use the comment given below:
keytool -genkeypair -keystore <keystore_name.jks> -alias
<alias_name> -dname "CN=<hostname>, OU=<Organization Unit>,
O=<Organization>, L=<Location>, ST=<State>,
C=<Country_Code>" -keyalg <Key Algorithm> -sigalg <Signature
Algorithm> -keysize <key size> -validity <Number of Days>
-keypass <Private key Password> -storepass <Store
Password>
For example:
keytool -genkeypair -keystore AdminOBREMOKeyStore.jks -alias
OBREMOCert -dname "CN=ofss00001.in.example.com, OU=OFSS, O=OFSS, L=Chennai,
ST=TN, C=IN" -keyalg "RSA" -sigalg "SHA1withRSA" -keysize 2048 -validity 3650
-keypass Password@123 -storepass Password@123
Note:
CN=ofss00001.in.example.com
is the Host Name of the
WebLogic server.
Parent topic: Obtaining the Identity Store