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
Edit zowe-setup-certificates.env and set the KEYSTORE_PASSWORD environment variable as follows:
KEYSTORE_PASSWORD='Bg67$cynhw89'
Run the zowe-setup-certificates.sh script to create the keystore
Note that the ../keystore/zowe-certificates.env contains an unquoted value:
KEYSTORE_PASSWORD=Bg67$cynhw89
Start the ZOWE instance
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
z/OS 2.2
ZOWE 1.11.0 (convenience build) (ZWES1013I ZSS Server has started. Version '1.11.0+20200423')
Node.js version node-v12.16.1-os390-s390x
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.
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
Edit zowe-setup-certificates.env and set the KEYSTORE_PASSWORD environment variable as follows: KEYSTORE_PASSWORD='Bg67$cynhw89'
Run the zowe-setup-certificates.sh script to create the keystore
Note that the ../keystore/zowe-certificates.env contains an unquoted value: KEYSTORE_PASSWORD=Bg67$cynhw89
Start the ZOWE instance
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