Uploaded image for project: 'WildFly WIP'
  1. WildFly WIP
  2. WFWIP-153

Keystore type automatic detection does not work for BKS/UBER/BCFKS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • Security
    • None
    • Hide

      git clone git@gitlab.mw.lab.eng.bos.redhat.com:mchoma/tests-security.git
      git checkout EAP7-675

      BKS/UBER
      ./build-elytron.sh -Djboss.dist=/home/mchoma/git-repo/wildfly/dist/target/wildfly-16.0.0.Beta1-SNAPSHOT -fae -Dwildfly -Dtest=AutomaticKestoreTypeTestCase -DtestLogToFile=false

      BCFKS
      ./build-fips.sh -Djboss.dist=/home/mchoma/git-repo/wildfly/dist/target/wildfly-16.0.0.Beta1-SNAPSHOT -fae -Dwildfly -Dfips.java.home=/home/mchoma/app/oracle_jdk1.8.0_192 -Dtest=AutomaticKestoreTypeTestCase -DtestLogToFile=false

      Show
      git clone git@gitlab.mw.lab.eng.bos.redhat.com:mchoma/tests-security.git git checkout EAP7-675 BKS/UBER ./build-elytron.sh -Djboss.dist=/home/mchoma/git-repo/wildfly/dist/target/wildfly-16.0.0.Beta1-SNAPSHOT -fae -Dwildfly -Dtest=AutomaticKestoreTypeTestCase -DtestLogToFile=false BCFKS ./build-fips.sh -Djboss.dist=/home/mchoma/git-repo/wildfly/dist/target/wildfly-16.0.0.Beta1-SNAPSHOT -fae -Dwildfly -Dfips.java.home=/home/mchoma/app/oracle_jdk1.8.0_192 -Dtest=AutomaticKestoreTypeTestCase -DtestLogToFile=false

    Description

      14:33:56,353 ERROR [stderr] (MSC service thread 1-4) java.lang.ClassCastException: org.bouncycastle.asn1.DLSequence cannot be cast to org.bouncycastle.asn1.ASN1Integer
      14:33:56,354 ERROR [stderr] (MSC service thread 1-4) 	at org.bouncycastle.asn1.pkcs.Pfx.<init>(Pfx.java:28)
      14:33:56,354 ERROR [stderr] (MSC service thread 1-4) 	at org.bouncycastle.asn1.pkcs.Pfx.getInstance(Pfx.java:52)
      14:33:56,355 ERROR [stderr] (MSC service thread 1-4) 	at org.bouncycastle.jcajce.provider.ProvPKCS12$PKCS12KeyStoreSpi.engineLoad(ProvPKCS12.java:1034)
      14:33:56,355 ERROR [stderr] (MSC service thread 1-4) 	at java.security.KeyStore.load(KeyStore.java:1445)
      14:33:56,355 ERROR [stderr] (MSC service thread 1-4) 	at org.wildfly.security.keystore.KeyStoreUtil.tryLoadKeystore(KeyStoreUtil.java:129)
      14:33:56,355 ERROR [stderr] (MSC service thread 1-4) 	at org.wildfly.security.keystore.KeyStoreUtil.loadKeyStore(KeyStoreUtil.java:107)
      14:33:56,356 ERROR [stderr] (MSC service thread 1-4) 	at org.wildfly.extension.elytron.KeyStoreService.start(KeyStoreService.java:146)
      14:33:56,356 ERROR [stderr] (MSC service thread 1-4) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1738)
      14:33:56,356 ERROR [stderr] (MSC service thread 1-4) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1700)
      14:33:56,357 ERROR [stderr] (MSC service thread 1-4) 	at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1558)
      14:33:56,357 ERROR [stderr] (MSC service thread 1-4) 	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      14:33:56,357 ERROR [stderr] (MSC service thread 1-4) 	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
      14:33:56,357 ERROR [stderr] (MSC service thread 1-4) 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
      14:33:56,358 ERROR [stderr] (MSC service thread 1-4) 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
      14:33:56,358 ERROR [stderr] (MSC service thread 1-4) 	at java.lang.Thread.run(Thread.java:748)
      14:33:56,359 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service org.wildfly.security.key-store.key_store_BCFKS: org.jboss.msc.service.StartException in service org.wildfly.security.key-store.key_store_BCFKS: WFLYELY00004: Unable to start the service.
      	at org.wildfly.extension.elytron.KeyStoreService.start(KeyStoreService.java:166)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1738)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1700)
      	at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1558)
      	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.NullPointerException
      	at org.wildfly.security.keystore.AtomicLoadKeyStore.atomize(AtomicLoadKeyStore.java:101)
      	at org.wildfly.extension.elytron.KeyStoreService.start(KeyStoreService.java:146)
      	... 8 more
      
      14:33:56,363 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("add") failed - address: ([
          ("subsystem" => "elytron"),
          ("key-store" => "key_store_BCFKS")
      ]) - failure description: {"WFLYCTL0080: Failed services" => {"org.wildfly.security.key-store.key_store_BCFKS" => "WFLYELY00004: Unable to start the service.
          Caused by: java.lang.NullPointerException"}}
      

      With type specified service starts without problem

      Attachments

        Activity

          People

            mmazanek Martin Mazánek (Inactive)
            mchoma@redhat.com Martin Choma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: