Description Syntax Examples exportKeyStoreObject

4-16 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

4.3.10.3 Example

The following command exports the keystore keys.jks for Oracle Virtual Directory instance ovd1 to file keys.jks under tmp: wls:mydomainserverConfig exportKeyStoreinst1, ovd1, ovd, keys.jks, password, tmp

4.3.11 exportKeyStoreObject

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

4.3.11.1 Description

This command exports a certificate signing request, certificatecertificate chain, or trusted certificate present in a Java keystore JKS to a file for the specified Oracle Virtual Directory instance. The certificate signing request is generated before exporting the object. The alias specifies the object to be exported.

4.3.11.2 Syntax

exportKeyStoreObjectinstName, compName, compType, keystoreName, password, type, path, alias

4.3.11.3 Examples

The following command generates and exports a certificate signing request from the key-pair indicated by alias mykey in keys.jks, for Oracle Virtual Directory instance ovd1 in application server instance inst1. The certificate signing request is exported under the directory tmp: wls:mydomainserverConfig exportKeyStoreObjectinst1, ovd1, ovd,keys.jks, password, CertificateRequest, tmp,mykey The following command exports a certificate or certificate chain indicated by alias mykey in keys.jks, for Oracle Virtual Directory instance ovd1, in application server path Specifies the absolute path of the directory under which the keystore is exported. 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 file. password Specifies the password of the keystore. type Specifies the type of the keystore object to be exported. Valid values are CertificateRequest, Certificate, TrustedCertificate and TrustedChain. path Specifies the absolute path of the directory under which the object is exported as a file named base64.txt. alias Specifies the alias of the keystore object to be exported. Argument Definition Infrastructure Security Custom WLST Commands 4-17 instance inst1. The certificate or certificate chain is exported under the directory tmp: wls:mydomainserverConfig exportKeyStoreObjectinst1, ovd1, ovd,keys.jks, password, Certificate, tmp,mykey The following command exports a trusted certificate indicated by alias mykey in keys.jks, for Oracle Virtual Directory instance ovd1, in application server instance inst1. The trusted certificate is exported under the directory tmp: wls:mydomainserverConfig exportKeyStoreObjectinst1, ovd1, ovd,keys.jks, password, TrustedCertificate, tmp,mykey

4.3.12 exportWallet