Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5764

Can't write/acquire credentials from a store using the elytron-tool script

XMLWordPrintable

      Trying to use the elytron-tool script to work with credentials from a credential store results in an exception similar (based on the actual operation) to this

      Exception encountered executing the command:
      org.wildfly.security.credential.store.CredentialStoreException: ELY09508: Cannot write credential to store
      	at org.wildfly.security.elytron-base@1.18.1.Final//org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:413)
      	at org.wildfly.security.elytron-base@1.18.1.Final//org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:242)
      	at org.wildfly.security.elytron-base@1.18.1.Final//org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:226)
      	at org.wildfly.security.elytron-tool@1.18.1.Final//org.wildfly.security.tool.CredentialStoreCommand.addAlias(CredentialStoreCommand.java:510)
      	at org.wildfly.security.elytron-tool@1.18.1.Final//org.wildfly.security.tool.CredentialStoreCommand.execute(CredentialStoreCommand.java:421)
      	at org.wildfly.security.elytron-tool@1.18.1.Final//org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:84)
      	at org.jboss.modules.Module.run(Module.java:353)
      	at org.jboss.modules.Module.run(Module.java:321)
      	at org.jboss.modules.Main.main(Main.java:604)
      Caused by: java.security.NoSuchAlgorithmException: ELY08028: Invalid algorithm "clear"
      	at org.wildfly.security.elytron-base@1.18.1.Final//org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:123)
      	at org.wildfly.security.elytron-base@1.18.1.Final//org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:287)
      	... 8 more
      
      
      

      There are no providers registered, so the PasswordFactory#getInstance method just immediately throws an exception.

            rhn-engineering-lgao Lin Gao
            rhn-engineering-lgao Lin Gao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: