sun.security.pkcs11.wrapper.PKCS11Exception: CKR_CRYPTOKI_NOT_INITIALIZED

Solution Verified - Updated -

Issue

  • Code that works on the temurin build fails with the following exception running on the Red Hat build of OpenJDK:
sun.security.pkcs11.wrapper.PKCS11Exception: CKR_CRYPTOKI_NOT_INITIALIZED

Environment

  • Red Hat Enterprise Linux (RHEL) 8
  • Red Hat build of OpenJDK 17.0.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content