com.ibm.mm.sdk.security
Class RsaCli
- java.lang.Object
-
- com.ibm.mm.sdk.security.RsaCli
-
public class RsaCli extends java.lang.ObjectCommand-line utility for encrypting credentials using RSA keys from Java Keystore.Prerequisites:
- Create a keystore using KeystoreGenerator utility
- Configure system properties with keystore details
Usage:
java -Drsa.keystorePath=config/keystore.p12 \ -Drsa.keystorePassword=keystorePass \ -Drsa.keyAlias=rsa-encryption-key \ -cp cm8-p8-sdk-mimic-jar.jar \ com.ibm.mm.sdk.security.RsaCli [plaintext_password]Example:
java -Drsa.keystorePath=config/keystore.p12 \ -Drsa.keystorePassword=keystorePass123 \ -Drsa.keyAlias=rsa-encryption-key \ -cp cm8-p8-sdk-mimic-jar.jar \ com.ibm.mm.sdk.security.RsaCli "myPassword123"Output:
${rsa:base64_encrypted_value}This encrypted value can then be used in configuration files:
filenet.password=${rsa:base64_encrypted_value}- See Also:
KeystoreGenerator,RsaEncryptionUtil
-
-
Constructor Summary
Constructors Constructor and Description RsaCli()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidmain(java.lang.String[] args)
-