Description Syntax Examples getKeyStoreObject

Infrastructure Security Custom WLST Commands 4-19

4.3.14 generateKey

Online command that generates a key pair in a Java keystore.

4.3.14.1 Description

This command generates a key pair in a Java keystore JKS for Oracle Virtual Directory. It also wraps the key pair in a self-signed certificate. Only keys based on the RSA algorithm are generated.

4.3.14.2 Syntax

generateKeyinstName, compName, compType, keystoreName, password, DN, keySize, alias, algorithm

4.3.14.3 Examples

The following command generates a key pair with DN cn=www.acme.com, key size 1024, algorithm RSA and alias mykey in keys.jks, for Oracle Virtual Directory instance ovd1 in application server instance inst1: wls:mydomainserverConfig generateKeyinst1, ovd1, ovd,keys.jks, password, cn=www.acme.com, 1024, mykey, RSA The following command is the same as above, except it does not explicitly specify the key algorithm: wls:mydomainserverConfig generateKeyinst1, ovd1, ovd,keys.jks, password, cn=www.acme.com, 1024, mykey

4.3.15 getKeyStoreObject

Online command that shows details about a keystore object.

4.3.15.1 Description

This command displays a specific certificate or trusted certificate present in a Java keystore JKS for Oracle Virtual Directory. The keystore object is indicated by its index number, as given by the listKeyStoreObjects command. It shows the certificate details including DN, key size, algorithm, and other information.

4.3.15.2 Syntax

getKeyStoreObjectinstName, compName, compType, keystoreName, password, type, 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. DN Specifies the Distinguished Name of the key pair entry. keySize Specifies the key size in bits. alias Specifies the alias of the key pair entry in the keystore. algorithm Specifies the key algorithm. Valid value is RSA. 4-20 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference index

4.3.15.3 Examples

The following command shows a trusted certificate with index 1 present in keys.jks, for Oracle Virtual Directory instance ovd1, in application server instance inst1: wls:mydomainserverConfig getKeyStoreObjectinst1, ovd1, ovd,keys.jks, password, TrustedCertificate, 1 The following command shows a certificate with index 1 present in keys.jks, for Oracle Virtual Directory instance ovd1, in application server instance inst1: wls:mydomainserverConfig getKeyStoreObjectinst1, ovd1, ovd,keys.jks, password, Certificate, 1

4.3.16 getSSL