Description Syntax Examples importWallet

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

Online command that imports an Oracle wallet from a file.

4.3.20.1 Description

This command imports an Oracle wallet from a file to the specified component instance Oracle HTTP Server, Oracle WebCache, or Oracle Internet Directory for manageability. If the wallet being imported is an auto-login wallet, the file path must point to cwallet.sso; if the wallet is password-protected, it must point to ewallet.p12. The wallet name must be unique for the component instance.

4.3.20.2 Syntax

importWalletinstName, compName, compType, walletName, password, filePath

4.3.20.3 Examples

The following command imports auto-login wallet file tmpcwallet.sso as wallet1 into Oracle Internet Directory instance oid1. Subsequently, the wallet is type Specifies the type of the keystore object to be imported. Valid values are Certificate and TrustedCertificate. filePath Specifies the absolute path of the file containing the keystore object. alias Specifies the alias to assign to the keystore object 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 values are ohs, oid, and webcache. walletName Specifies the name of the wallet being imported. The name must be unique for the component instance. password Specifies the password of the wallet. filePath Specifies the absolute path of the wallet file being imported. Argument Definition 4-24 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference managed with the name wallet1. No password is passed since it is an auto-login wallet: wls:mydomainserverConfig importWalletinst1, oid1, oid, wallet1, , tmpcwallet.sso The following command imports password-protected wallet tmpewallet.p12 as wallet2 into Oracle Internet Directory instance oid1. Subsequently, the wallet is managed with the name wallet2. The wallet password is passed as a parameter: wls:mydomainserverConfig importWalletinst1, oid1, oid, wallet2, password, tmpewallet.p12

4.3.21 importWalletObject