zowe / zowe-install-packaging

Packaging repository for the Zowe install scripts and files
Eclipse Public License 2.0
27 stars 51 forks source link

ZWEAM400E Error initializing SSL Context: 'keystore password was incorrect' #1417

Open abend0c4 opened 4 years ago

abend0c4 commented 4 years ago

If I specify a keystore password containing a dollar sign ($) in zowe-setup-certificates.env and run the zowe-setup-certificates.sh script to create the keystore, then create and start a ZOWE instance then the keystore password is truncated at runtime, which results in error message ZWEAM400E Error initializing SSL Context: 'keystore password was incorrect'

Steps to Reproduce

  1. Edit zowe-setup-certificates.env and set the KEYSTORE_PASSWORD environment variable as follows: KEYSTORE_PASSWORD='Bg67$cynhw89'

  2. Run the zowe-setup-certificates.sh script to create the keystore

  3. Note that the ../keystore/zowe-certificates.env contains an unquoted value: KEYSTORE_PASSWORD=Bg67$cynhw89

  4. Start the ZOWE instance

  5. Note that the STDOUT reports the environment variable value (truncated) as: KEYSTORE_PASSWORD=Bg67 ...and message "ZWEAM400E Error initializing SSL Context: 'keystore password was incorrect'" is issued.

Expected behavior I expect to be able to set a keystore password that contains any character (even a $ sign)

Screenshots n/a

Logs If applicable, add server logs collected at the time of your problem.

Details

Additional context A workaround is to manually edit ../keystore/zowe-certificates.env and ensure that the KEYSTORE_PASSWORD value is enclosed in single quotation marks.

https://github.com/zowe/api-layer/wiki/Issue-management

jandadav commented 4 years ago

@abend0c4 transfering the issue to zowe-install-packaging for tracking, as the issue seems install related.