Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Java 9 PKCS#11 support

T.S. Apr 03, 2019 09:42AM UTC

With Java 9, SunPKCS11 doesn't provide a InputStream constructor anymore.

Recommended approach (since at least Java 8):

Provider p = Security.getProvider("SunPKCS11");
/* check for null */
p.load(configInputStream);

PS: Please also provide a more helpful error message than "Unable to load library" for the PKCS#11 hardware token load (especially if ClassNotFound or MethodNotFound occurred).


Rose Krawczuk Apr 10, 2019 08:53AM UTC Support Center agent

We’re looking into this and will update you when we have made some progress.


Post Your public answer

Your name
Your email address
Answer