Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ciphertool throws a NPE #3725

Closed
BLasan opened this issue Feb 27, 2025 · 1 comment
Closed

Ciphertool throws a NPE #3725

BLasan opened this issue Feb 27, 2025 · 1 comment

Comments

@BLasan
Copy link

BLasan commented Feb 27, 2025

Description

After encrypting passwords in deployment.toml file, ciphertool throws a NPE from the following command.
./ciphertool.sh -Dconfigure

Asymmetric encryption using Primary KeyStore.
{type: JKS, alias: wso2carbon, path: /Users/benura/Documents/U2/wso2am-4.5.0-SNAPSHOT-Post-Beta/repository/resources/security/wso2carbon.jks}

[Please Enter Primary KeyStore Password of Carbon Server : ]

Primary KeyStore of Carbon Server is initialized Successfully


Encryption is done Successfully


Encryption is done Successfully


Encryption is done Successfully


Encryption is done Successfully

Exception in thread "main" java.lang.NullPointerException
	at java.base/java.lang.String.concat(String.java:1937)
	at org.wso2.ciphertool.CipherTool.updateDeploymentConfigurationWithEncryptedKeys(CipherTool.java:452)
	at org.wso2.ciphertool.CipherTool.main(CipherTool.java:92)

Steps to Reproduce

Follow the steps in the following doc[1]

[1] https://apim.docs.wso2.com/en/4.5.0/install-and-setup/setup/security/logins-and-passwords/working-with-encrypted-passwords/

Version

4.5.0-beta

Environment Details (with versions)

No response

@PasanT9
Copy link

PasanT9 commented Feb 28, 2025

Issue is not reproducible. Was able to successfully encrypt passwords.

@PasanT9 PasanT9 closed this as completed Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants