keytool error: java.security.KeyStoreException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_SESSION_READ_ONLY
Issue
- keytool -genkey -alias ABC -keyalg RSA -keystore /
/XYZ_jks.jks
keytool error: java.security.KeyStoreException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_SESSION_READ_ONLY
This happens :
- rhel8
- fips-mode enabled
Environment
- OpenJDK
- 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.