Support Article
Unable to encrypt BIX user password for command line process
SA-31100
Summary
Developers are working on encryption for the BIX user password for the BIX command line process.
They have tried the following, but it threw an error:
/your_directory/BIX/install/jdk/bin/java -classpath /your_directory/BIX/install/lib/prbootstrap.jar com.pega.pegarules.pub.PassGen "password"
Error Messages
Exception in thread "main" java.lang.NoClassDefFoundError: com/pega/pegarules/boot/internal/extbridge/AppServerBaseLogger
at com.pega.pegarules.internal.bootstrap.PRBootstrapDataSource.<clinxx>(PRBootstrapDataSource.java:141)
at com.pega.pegarules.pub.PassGen.main(PassGen.java:44)
Steps to Reproduce
Attempt to encrypt items for BIX command line process.
Root Cause
A software use or operation error. A keyring file was not created before attempting to encrypt the BIX user password.
Resolution
This PDN article provides instructions on how to perform different encryption tasks: https://pdn.pega.com/how-encrypt-passwords-properties-and-blobs
First, a keyring file will need to be generated, as discussed in the "Generating encrypted passwords with KeyringImpl for pegarules.keyring, specified in the prconfig.xml file" section.
After, the runPega script, found in the scripts directory of the distribution media, can be used to encrypt the user credentials as discussed in the "Specifying PRPC user credentials for rule resolution (BIX example)" section.
Published December 9, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.