A CA Cert stored in a PEM file loads fine on server startup, or when adding initially via CLI,
[standalone@localhost:9990 /] /subsystem=elytron/key-store=httpsTS:add(path="keystore/CoplanarTwo.pem",relative-to=jboss.server.config.dir,credential-reference={clear-text="notused"})
but fails to reload using CLI :load() method.
[standalone@localhost:9990 /] /subsystem=elytron/key-store=httpsTS:load()
2023-02-07 17:22:04,118 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 3) WFLYCTL0013: Operation ("load") failed - address: ([
("subsystem" => "elytron"),
("key-store" => "httpsTS")
]): java.lang.RuntimeException: WFLYELY00009: Unable to complete operation. 'toDerInputStream rejects tag type 45'
at org.wildfly.ex...@18.0.4.Final//org.wildfly.extension.elytron.KeyStoreService.load(KeyStoreService.java:297)
This should be possible, since CA certs may need to be added to facilitate CA key/cert rollover, or simple adding additional CAs for client-certificate based authentication.
I did look briefly at the Elytron source code, and server error log, and it seems that while Elytron has a KeyStore implementation, it is using the JVM's "SUN" provider. I was unable to find any documentation on choosing the provider to be used, what providers exist, what their features might be, etc.