[
https://issues.jboss.org/browse/WFWIP-153?page=com.atlassian.jira.plugin....
]
Martin Choma edited comment on WFWIP-153 at 1/17/19 2:31 AM:
-------------------------------------------------------------
Still experiencing problems after fix
{code}
08:28:44,761 ERROR [org.jboss.as.controller.management-operation]
(management-handler-thread - 1) WFLYCTL0013: Operation ("read-attribute") failed
- address: ([
("subsystem" => "elytron"),
("key-store" => "key_store_UBER")
]) - failure description: "WFLYCTL0216: Management resource '[
(\"subsystem\" => \"elytron\"),
(\"key-store\" => \"key_store_UBER\")
]' not found"
08:28:44,782 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed
to start service org.wildfly.security.key-store.key_store_wrong:
org.jboss.msc.service.StartException in service
org.wildfly.security.key-store.key_store_wrong: 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.io.IOException: DerInputStream.getLength(): lengthTag=109, too big.
at sun.security.util.DerInputStream.getLength(DerInputStream.java:599)
at sun.security.util.DerValue.init(DerValue.java:391)
at sun.security.util.DerValue.<init>(DerValue.java:332)
at sun.security.util.DerValue.<init>(DerValue.java:345)
at sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1938)
at java.security.KeyStore.load(KeyStore.java:1445)
at
org.wildfly.security.keystore.AtomicLoadKeyStoreSpi.engineLoad(AtomicLoadKeyStoreSpi.java:55)
at java.security.KeyStore.load(KeyStore.java:1445)
at org.wildfly.extension.elytron.KeyStoreService.start(KeyStoreService.java:143)
... 8 more
08:28:44,786 ERROR [org.jboss.as.controller.management-operation]
(management-handler-thread - 1) WFLYCTL0013: Operation ("add") failed - address:
([
("subsystem" => "elytron"),
("key-store" => "key_store_wrong")
]) - failure description: {"WFLYCTL0080: Failed services" =>
{"org.wildfly.security.key-store.key_store_wrong" => "WFLYELY00004:
Unable to start the service.
Caused by: java.io.IOException: DerInputStream.getLength(): lengthTag=109, too
big."}}
08:28:44,813 ERROR [org.jboss.as.controller.management-operation]
(management-handler-thread - 1) WFLYCTL0013: Operation ("read-attribute") failed
- address: ([
("subsystem" => "elytron"),
("key-store" => "key_store_BKS")
]) - failure description: "WFLYCTL0216: Management resource '[
(\"subsystem\" => \"elytron\"),
(\"key-store\" => \"key_store_BKS\")
]' not found"
{code}
was (Author: mchoma):
Still experiencing problems after fix
08:28:44,761 ERROR [org.jboss.as.controller.management-operation]
(management-handler-thread - 1) WFLYCTL0013: Operation ("read-attribute") failed
- address: ([
("subsystem" => "elytron"),
("key-store" => "key_store_UBER")
]) - failure description: "WFLYCTL0216: Management resource '[
(\"subsystem\" => \"elytron\"),
(\"key-store\" => \"key_store_UBER\")
]' not found"
08:28:44,782 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed
to start service org.wildfly.security.key-store.key_store_wrong:
org.jboss.msc.service.StartException in service
org.wildfly.security.key-store.key_store_wrong: 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.io.IOException: DerInputStream.getLength(): lengthTag=109, too big.
at sun.security.util.DerInputStream.getLength(DerInputStream.java:599)
at sun.security.util.DerValue.init(DerValue.java:391)
at sun.security.util.DerValue.<init>(DerValue.java:332)
at sun.security.util.DerValue.<init>(DerValue.java:345)
at sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1938)
at java.security.KeyStore.load(KeyStore.java:1445)
at
org.wildfly.security.keystore.AtomicLoadKeyStoreSpi.engineLoad(AtomicLoadKeyStoreSpi.java:55)
at java.security.KeyStore.load(KeyStore.java:1445)
at org.wildfly.extension.elytron.KeyStoreService.start(KeyStoreService.java:143)
... 8 more
08:28:44,786 ERROR [org.jboss.as.controller.management-operation]
(management-handler-thread - 1) WFLYCTL0013: Operation ("add") failed - address:
([
("subsystem" => "elytron"),
("key-store" => "key_store_wrong")
]) - failure description: {"WFLYCTL0080: Failed services" =>
{"org.wildfly.security.key-store.key_store_wrong" => "WFLYELY00004:
Unable to start the service.
Caused by: java.io.IOException: DerInputStream.getLength(): lengthTag=109, too
big."}}
08:28:44,813 ERROR [org.jboss.as.controller.management-operation]
(management-handler-thread - 1) WFLYCTL0013: Operation ("read-attribute") failed
- address: ([
("subsystem" => "elytron"),
("key-store" => "key_store_BKS")
]) - failure description: "WFLYCTL0216: Management resource '[
(\"subsystem\" => \"elytron\"),
(\"key-store\" => \"key_store_BKS\")
]' not found"
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)