Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-11733

Error executing command: ELY09504: Cannot acquire a credential from the credential store

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • fuse-7.x-GA
    • fuse-7.5-ER1
    • Karaf
    • None
    • % %
    • Hide
      • echo "some.alias = CS:some.alias" >> etc/system.properties
      • bin/fuse
      • credential-store:create --force --persist -W p@55W0rD -l /mnt/hudson_workspace/workspace/fuse-7.5-karaf-general-matrix/4e5d4c56/1569419151914/fuse-karaf-7.5.0.fuse-750029
      • credential-store:store some.alias s0m3R@ndP@s5Wd
      • credential-store:remove some.alias

      ps. Replace the path in 3rd dash to correct path

      Show
      echo "some.alias = CS:some.alias" >> etc/system.properties bin/fuse credential-store:create --force --persist -W p@55W0rD -l /mnt/hudson_workspace/workspace/fuse-7.5-karaf-general-matrix/4e5d4c56/1569419151914/fuse-karaf-7.5.0.fuse-750029 credential-store:store some.alias s0m3R@ndP@s5Wd credential-store:remove some.alias ps. Replace the path in 3rd dash to correct path

    Description

      Hello,
      there is a problem with removing aliased credentials from credential store. Error executing command: ELY09504: Cannot acquire a credential from the credential store.
      Error in log:

      2019-09-25 09:46:34,931 | INFO  | af-7.5.0.fuse-750029 | c.s.i.CredentialStoreServiceImpl | 12 - org.jboss.fuse.modules.fuse-credential-store-core - 7.5.0.fuse-750029 | felix.cm.pm property from ${karaf.etc}/config.properties is not "elytron" - ConfigurationAdmin properties won't be integrated with credential store.
      2019-09-25 09:46:35,883 | ERROR | Thread-35            | o.a.k.s.s.ShellUtil              | 149 - org.apache.karaf.shell.core - 4.2.6.fuse-750012 | Exception caught while executing command
      org.wildfly.security.credential.store.CredentialStoreException: ELY09504: Cannot acquire a credential from the credential store
      	at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.retrieve(KeyStoreCredentialStore.java:468) ~[?:?]
      	at org.wildfly.security.credential.store.CredentialStoreSpi.exists(CredentialStoreSpi.java:87) ~[?:?]
      	at org.wildfly.security.credential.store.CredentialStore.exists(CredentialStore.java:212) ~[?:?]
      	at org.jboss.fuse.credential.store.impl.CredentialStoreServiceImpl.aliasExists(CredentialStoreServiceImpl.java:147) ~[?:?]
      	at org.jboss.fuse.credential.store.command.RemoveFromCredentialStore.execute(RemoveFromCredentialStore.java:38) ~[?:?]
      	at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) ~[?:?]
      	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) ~[?:?]
      	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) ~[?:?]
      	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) ~[?:?]
      	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) ~[?:?]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) ~[?:?]
      	at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) ~[?:?]
      	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
      	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:277) ~[?:1.8.0]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160) ~[?:1.8.0]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:1.8.0]
      	at java.lang.Thread.run(Thread.java:818) [?:2.9 (08-02-2019)]
      Caused by: java.security.UnrecoverableKeyException: Get Key failed: no such algorithm: 1.2.840.113549.1.7.1 for provider IBMJCE
      	at com.ibm.crypto.provider.PKCS12KeyStoreOracle.engineGetKey(Unknown Source) ~[ibmjceprovider.jar:8.0 build_20190328-${buildid}]
      	at com.ibm.crypto.provider.PKCS12KeyStoreOracle.engineGetEntry(Unknown Source) ~[ibmjceprovider.jar:8.0 build_20190328-${buildid}]
      	at java.security.KeyStore.getEntry(KeyStore.java:1532) ~[?:1.8.0]
      	at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.retrieve(KeyStoreCredentialStore.java:466) ~[?:?]
      	... 17 more
      Caused by: java.security.NoSuchAlgorithmException: no such algorithm: 1.2.840.113549.1.7.1 for provider IBMJCE
      	at sun.security.jca.GetInstance.getService(GetInstance.java:113) ~[?:1.8.0]
      	at javax.crypto.b.a(Unknown Source) ~[?:?]
      	at javax.crypto.SecretKeyFactory.getInstance(Unknown Source) ~[?:?]
      	at com.ibm.crypto.provider.PKCS12KeyStoreOracle.engineGetKey(Unknown Source) ~[ibmjceprovider.jar:8.0 build_20190328-${buildid}]
      	at com.ibm.crypto.provider.PKCS12KeyStoreOracle.engineGetEntry(Unknown Source) ~[ibmjceprovider.jar:8.0 build_20190328-${buildid}]
      	at java.security.KeyStore.getEntry(KeyStore.java:1532) ~[?:1.8.0]
      	at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.retrieve(KeyStoreCredentialStore.java:466) ~[?:?]
      	... 17 more
      2019-09-25 09:46:37,386 | INFO  | af-7.5.0.fuse-750029 | c.s.i.CredentialStoreServiceImpl | 12 - org.jboss.fuse.modules.fuse-credential-store-core - 7.5.0.fuse-750029 | felix.cm.pm property from ${karaf.etc}/config.properties is not "elytron" - ConfigurationAdmin properties won't be integrated with credential store.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            vhais Vratislav Hais (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: