Description Syntax Examples importKeyStoreObject

4-22 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

4.3.18 importKeyStore

Online command that imports a keystore from a file.

4.3.18.1 Description

This command imports a Java keystore JKS from a file to the specified Oracle Virtual Directory instance for manageability. The component instance name must be unique.

4.3.18.2 Syntax

importKeyStoreinstName, compName, compType, keystoreName, password, filePath

4.3.18.3 Example

The following command imports the keystore tmpkeys.jks as file.jks into Oracle Virtual Directory instance ovd1. Subsequently, the keystore is managed through the name file.jks: wls:mydomainserverConfig importKeyStoreinst1, ovd1, ovd, file.jks, password, tmpkeys.jks

4.3.19 importKeyStoreObject

Online command that imports an object from a file to a keystore.

4.3.19.1 Description

This command imports a certificate, certificate chain, or trusted certificate into a Java keystore JKS for Oracle Virtual Directory, assigning it the specified alias which must be unique in the keystore. If a certificate or certificate chain is being imported, the alias must match that of the corresponding key-pair.

4.3.19.2 Syntax

importKeyStoreObjectinstName, compName, compType, keystoreName, password, type, filePath, alias Argument Definition instName Specifies the name of the application server instance. compName Specifies the name of the component instance. compType Specifies the type of component. Valid value is ovd. keystoreName Specifies the name of the keystore being imported. This name must be unique for this component instance. password Specifies the password of the keystore. filePath Specifies the absolute path of the keystore file to be imported. Argument Definition instName Specifies the name of the application server instance. compName Specifies the name of the component instance. compType Specifies the type of component. Valid value is ovd. keystoreName Specifies the name of the keystore. password Specifies the password of the keystore. Infrastructure Security Custom WLST Commands 4-23

4.3.19.3 Examples

The following command imports a certificate or certificate chain from file cert.txt into keys.jks, using alias mykey for Oracle Virtual Directory instance ovd1, in application server instance inst1. The file keys.jks must already have an alias mykey for a key-pair whose public key matches that in the certificate being imported: wls:mydomainserverConfig importKeyStoreObjectinst1, ovd1, ovd,keys.jks, password, Certificate,tmpcert.txt, mykey The following command imports a trusted certificate from file trust.txt into keys.jks using alias mykey1, for Oracle Virtual Directory instance ovd1 in application server instance inst1: wls:mydomainserverConfig importKeyStoreObjectinst1, ovd1, ovd,keys.jks, password, TrustedCertificate,tmptrust.txt, mykey1

4.3.20 importWallet