Description Syntax Example changeKeyStorePassword

Infrastructure Security Custom WLST Commands 4-11

4.3.2.1 Description

This command creates a key pair and wraps it in a self-signed certificate in an Oracle wallet for the specified component instance Oracle HTTP Server, Oracle WebCache or Oracle Internet Directory. Only keys based on the RSA algorithm are generated.

4.3.2.2 Syntax

addSelfSignedCertificateinstName, compName, compType, walletName, password, DN, keySize

4.3.2.3 Example

The following command adds a self-signed certificate with DN cn=www.acme.com, key size 1024 to wallet1, for Oracle Internet Directory instance oid1, in application server instance inst1: wls:mydomainserverConfig addSelfSignedCertificateinst1, oid1, oid,wallet1, password, cn=www.acme.com, 1024

4.3.3 changeKeyStorePassword

Online command that changes the keystore password.

4.3.3.1 Description

This command changes the password of a Java Keystore JKS file for an Oracle Virtual Directory instance.

4.3.3.2 Syntax

changeKeyStorePasswordinstName, compName, compType, keystoreName, currPassword, newPassword 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 file. password Specifies the password of the wallet. DN Specifies the Distinguished Name of the key pair entry. keySize Specifies the key size in bits. 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 filename of the keystore. currPassword Specifies the current keystore password. newPassword Specifies the new keystore password. 4-12 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

4.3.3.3 Example

The following command changes the password of file keys.jks for Oracle Virtual Directory instance ovd1 in application server instance inst1: wls:mydomainserverConfig changeKeyStorePasswordinst1, ovd1, ovd,keys.jks, currpassword, newpassword

4.3.4 changeWalletPassword