Showing posts with label Keystore DemoTrust.jks How to import certificate to keystore. Show all posts
Showing posts with label Keystore DemoTrust.jks How to import certificate to keystore. Show all posts

Friday, October 31, 2014

How to import certificate to keystore



What is Keystore ?

A Java KeyStore (JKS) is a repository of security certificates – either authorization certificates or public key certificates – used for instance in SSL encryption. In Oracle WebLogic Server, a file with extension jks serves as keystore.

What is DemoTrust.jks ?

DemoTrust.jks Contains a list of certificate authorities trusted by WebLogic Server. This keystore establishes trust for WebLogic Server.

How to add import a certificate  to DemoTrust.jks Keystore ?

keytool -import -alias <certificate name> -file <certificate path> -keystore <DemoTrust.jks path>

Example : Execute below command in CMD in Windows


keytool -import -alias FM-CA -file C:\libs\FM\FM-CA.cer -keystore C:\Oracle\Middleware\wlserver_10.3\server\lib\DemoTrust.jks

How to see existing certificates in DemoTrust.jks ?

keytool -list -v -keystore C:\Oracle\Middleware\wlserver_10.3\server\lib\DemoTrust.jks

Here is the default password for DemoTrust.jks : DemoTrustKeyStorePassPhrase

For More Info : http://docs.oracle.com/cd/E19118-01/n1.sprovsys51/819-1655/fapsf/index.html