]
Yeray Borges reassigned WFCORE-2505:
------------------------------------
Assignee: Yeray Borges
Key store exported from legacy security domain does not work Elytron
filtering-key-store
----------------------------------------------------------------------------------------
Key: WFCORE-2505
URL:
https://issues.jboss.org/browse/WFCORE-2505
Project: WildFly Core
Issue Type: Bug
Components: Security
Affects Versions: 3.0.0.Beta6
Reporter: Ondrej Kotek
Assignee: Yeray Borges
Priority: Critical
It is not possible to use a key store exported from legacy security domain (i.e.
{{elytron-key-store}}) in Elytron {{filtering-key-store}}. It results in:
{noformat}
{
"outcome" => "failed",
"failure-description" => {
"WFLYCTL0080: Failed services" =>
{"org.wildfly.security.key-store.fks" =>
"org.jboss.msc.service.StartException in service org.wildfly.security.key-store.fks:
java.lang.ClassCastException: org.jboss.as.security.elytron.BasicService cannot be cast to
org.wildfly.extension.elytron.ModifiableKeyStoreService
Caused by: java.lang.ClassCastException: org.jboss.as.security.elytron.BasicService
cannot be cast to org.wildfly.extension.elytron.ModifiableKeyStoreService"},
"WFLYCTL0412: Required services that are not installed:" =>
["org.wildfly.security.key-store.fks"]
},
"rolled-back" => true
}
{noformat}
The exported key store is announced as {{org.wildfly.security.key-store}} capability.
Hence it is expected to work wherever the capability is requested.
The same applies to {{elytron-trust-store}}.