[jboss-jira] [JBoss JIRA] (WFWIP-153) Keystore type automatic detection does not work for BKS/UBER/BCFKS
Martin Choma (Jira)
issues at jboss.org
Mon Dec 17 09:46:00 EST 2018
[ https://issues.jboss.org/browse/WFWIP-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Choma updated WFWIP-153:
-------------------------------
Steps to Reproduce:
git clone git at 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
was:
git clone git at gitlab.mw.lab.eng.bos.redhat.com:mchoma/tests-security.git
git checkout EAP7-675
./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
> Keystore type automatic detection does not work for BKS/UBER/BCFKS
> ------------------------------------------------------------------
>
> Key: WFWIP-153
> URL: https://issues.jboss.org/browse/WFWIP-153
> Project: WildFly WIP
> Issue Type: Bug
> Components: Security
> Reporter: Martin Choma
> Assignee: Martin Mazanek
> Priority: Major
>
> {code}
> 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"}}
> {code}
> With type specified service starts without problem
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list