Try OpenEdge Now
skip to main content
OpenEdge Authentication Gateway Guide
Reference entries : OpenEdge Authentication Gateway utilities : Change the keystore password utility (changeP12pwd)
 

Change the keystore password utility (changeP12pwd)

This utility changes the keystore password in a specified keystore file. The utility is found in the /conf folder of a PAS for OpenEdge instance.
The default password is password in the default keystore file: %DLC%/bin/tomcat-keystore.p12. Obviously, the password should be changed when you are deploying a production instance of PAS for OpenEdge.
You can check the current password by running: tcman config psc.as.https.keypass. After changing the password with changeP12pwd, set psc.as.https.keypass to the new password. (See the example below.)

Syntax

changeP12pw {-keystorefile file_name –keypassword current_password } | -h

Parameters

-file_name
Specifies the file name (or complete path) of the keystore file.
-current_password
Specifies the existing password in the keystore file.
-h
Displays a list of the changeP12pwd parameters.

Example

The following example changes the default password. The changeP12pwd utility is being invoked from the /conf directory on the default keystore file that is in the same directory.
proenv>changeP12pwd -keystorefile tomcat-keystore.p12 -keypassword password
MAC verified OK
##### Take backup of original tomcat-keystore.p12 as tomcat-keystore_bk.p12
#####.alias ############## : test2
Loading 'screen' into random state - done
Enter Export Password: newpassword
Verifying - Enter Export Password: newpassword
"### Success: tomcat-keystore.p12 password changed ###"
Notice that:
*The utility creates a backup of the original keystore file. In this case, it is tomcat-keystore_bk.p12.
*The utility prompts you to enter the new password and to verify the entry.
*The utility indicates if the change was successful.
After a successful password change, reset psc.as.https.keypass to the new value:
tcman config psc.as.https.keypass=newpassword