NoSuchAlgorithmException: PKCS11 KeyStore not available in JBoss EAP
Issue
We are getting this error in JBoss EAP when specifying the keystore type to PKCS11 for example in the web subsystem:
<subsystem xmlns="urn:jboss:domain:web:2.2" default-virtual-server="default-host" native="false">
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"></connector>
<connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true">
<ssl password="password" keystore-type="PKCS11"></ssl>
Caused by: java.security.NoSuchAlgorithmException: PKCS11 KeyStore not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159) [rt.jar:1.8.0_162]
at java.security.Security.getImpl(Security.java:695) [rt.jar:1.8.0_162]
at java.security.KeyStore.getInstance(KeyStore.java:848) [rt.jar:1.8.0_162]
... 6 more
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7
- 6
- Java
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
