Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-12915

Wildfly Elytron Tool, Powershell script elytron-tool.ps1 doesn't work with custom credential store implementation.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.2.0.CD12
    • 7.1.0.CR1
    • Security
    • 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

      1. if (Test-Path env:ELYTRON_TOOL_ADDONS) { $ELYTRON_TOOL_ADDONS=(Get-ChildItem Env:ELYTRON_TOOL_ADDONS).value }
      2. $ELYTRON_TOOL_ADDONS=$env:ELYTRON_TOOL_ADDONS

              rhn-support-ivassile Ilia Vassilev
              hsvabek_jira Hynek Švábek (Inactive)
              Hynek Švábek Hynek Švábek (Inactive)
              Hynek Švábek Hynek Švábek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: