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

[GSS](7.0.z) Invalid Secret Key when using a vault and JDK 1.8.0_171

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 7.0.9.GA
    • Server

      The following exception is thrown when using vault and JDK 1.8.0_171+ (EAP startup and "vault.sh" script):

      java.lang.Exception: WFLYSEC0045: Exception encountered:
          at org.jboss.as.security.vault.VaultSession.initSecurityVault(VaultSession.java:192)
          at org.jboss.as.security.vault.VaultSession.startVaultSession(VaultSession.java:210)
          at org.jboss.as.security.vault.VaultTool.execute(VaultTool.java:193)
          at org.jboss.as.security.vault.VaultTool.main(VaultTool.java:83)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at org.jboss.modules.Module.run(Module.java:335)
          at org.jboss.modules.Main.main(Main.java:505)
      Caused by: org.jboss.security.vault.SecurityVaultException: java.lang.RuntimeException: PBOX00140: Unable to get keystore (/path/to/vault/vault.keystore)
          at org.picketbox.plugins.vault.PicketBoxSecurityVault.init(PicketBoxSecurityVault.java:210)
          at org.jboss.as.security.vault.VaultSession.initSecurityVault(VaultSession.java:189)
          ... 9 more
      Caused by: java.lang.RuntimeException: PBOX00140: Unable to get keystore (/path/to/vault/vault.keystore)
          at org.picketbox.plugins.vault.PicketBoxSecurityVault.getKeyStore(PicketBoxSecurityVault.java:691)
          at org.picketbox.plugins.vault.PicketBoxSecurityVault.init(PicketBoxSecurityVault.java:205)
          ... 10 more
      Caused by: java.io.IOException: Invalid secret key format
          at com.sun.crypto.provider.JceKeyStore.engineLoad(JceKeyStore.java:856)
          at java.security.KeyStore.load(KeyStore.java:1445)
          at org.picketbox.util.KeyStoreUtil.getKeyStore(KeyStoreUtil.java:201)
          at org.picketbox.util.KeyStoreUtil.getKeyStore(KeyStoreUtil.java:151)
          at org.picketbox.plugins.vault.PicketBoxSecurityVault.getKeyStore(PicketBoxSecurityVault.java:688)
          ... 11 more
      

              rhn-support-ivassile Ilia Vassilev
              rhn-support-bmaxwell Brad Maxwell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: