]
Hynek Švábek commented on ELY-1350:
-----------------------------------
Updated in description.
Thanks [~ctomc]
Wildfly Elytron Tool, Powershell script elytron-tool.ps1 doesn't
work with custom credential store implementation.
------------------------------------------------------------------------------------------------------------------
Key: ELY-1350
URL:
https://issues.jboss.org/browse/ELY-1350
Project: WildFly Elytron
Issue Type: Bug
Reporter: Hynek Švábek
Assignee: Darran Lofthouse
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:
{code}
$env:ELYTRON_TOOL_ADDONS="C:\custom.jar"
{code}
* run this command
{code}
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)
{code}
*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