-
Bug
-
Resolution: Done
-
Major
-
7.1.0.CR1
-
None
Powershell script elytron-tool.ps1 doesn't work with custom credential store implementation.
There is problem with getting value of environment variable ELYTRON_TOOL_ADDONS.
How to reproduce:
- run powershell and set work directory JBOSS_HOME/bin
- set env variable for custom credential store implementation jar like this:
$env:ELYTRON_TOOL_ADDONS="C:\custom.jar"
- run this command
PowerShell -ExecutionPolicy Bypass -File elytron-tool.ps1 credential-store --add secret_alias --password pass123 --create -x secret_password -l 001.jceks --type CustomTestCredentialStore --debug Exception encountered executing the command: java.security.NoSuchAlgorithmException at org.wildfly.security.credential.store.CredentialStore.getInstance(CredentialStore.java:80) at org.wildfly.security.tool.CredentialStoreCommand.execute(CredentialStoreCommand.java:188 at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:81)
Suggestion to improve:
For me works one of these changes in elytron-tool.ps1 script
- if (Test-Path env:ELYTRON_TOOL_ADDONS) { $ELYTRON_TOOL_ADDONS=(Get-ChildItem Env:ELYTRON_TOOL_ADDONS).value }
- $ELYTRON_TOOL_ADDONS=$env:ELYTRON_TOOL_ADDONS
- is cloned by
-
WFCORE-3299 Wildfly Elytron Tool, Powershell script elytron-tool.ps1 doesn't work with custom credential store implementation.
- Resolved
- is incorporated by
-
JBEAP-12932 Upgrade WildFly Core to 4.0.1.Final
- Closed