Generating a New Key for the Keystore Using Fusion Middleware Control

8-14 Oracle Fusion Middleware Administrators Guide

8.3.5.6 Importing a Certificate or Trusted Certificate into a Keystore Using WLST

Assuming the instance name is inst1, use this command to import a certificate into a keystore: importKeyStoreObjectinst1, ovd5, ovd, newKeystore, password, Certificate, tmpcert.txt, alias where password is the password for this keystore, tmpcert.txt is the file that contains BASE64 encoded certificate, and alias is the alias by which this certificate is imported. Note that this alias must be same as that of the key pair that was used to generate this certificate request. 8.3.5.7 Exporting a Certificate or Trusted Certificate from the Keystore Using Fusion Middleware Control Take these steps to export a certificate or trusted certificate from the keystore: 1. From the navigation pane, locate your component instance. 2. Navigate to component_name, then Security, then Keystores. 3. Select the desired keystore from the list of stores. 4. A dialog box appears in which you must enter the keystore password to continue. 5. The Manage Certificates page appears. Click Export. 6. A dialog box appears which shows the Base64 encoded certificate or trusted certificate. You can either copy the contents from the text box and paste it to a file, or select the Export button to save it directly to a file. Note: You cannot use the WLST command-line tool to import DER-encoded certificates or trusted certificates into a JKS keystore; use the keytool utility for this purpose. Managing Keystores, Wallets, and Certificates 8-15

8.3.5.8 Exporting a Certificate or Trusted Certificate from the Keystore Using WLST

Assuming the instance name is inst1, use this command to export a certificate: exportKeyStoreObjectinst1, ovd5, ovd, newKeystore, password, Certificate, tmp, alias where password is the password for this keystore, tmp is the path under which the certificate is generated in BASE64 format in the file base64.txt, and alias is the alias of the certificate being exported. 8.3.5.9 Deleting a Certificate or Trusted Certificate from the Keystore Using Fusion Middleware Control Take these steps to delete a certificate, or a trusted certificate, from a keystore: 1. From the navigation pane, locate your component instance. 2. Navigate to component_name, then Security, then Keystores. 3. Select the desired keystore from the list of stores. 4. A dialog box appears in which you must enter the keystore password to continue. 5. The Manage Certificates page appears. Select the certificate or trusted certificate to be deleted, and Click Delete. 6. A dialog box appears asking you to confirm the choice. Select OK to confirm.