java.security.ProviderException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • LunaSA and PKCS#11
    via ejbca by ialaoui
    ,
  • Problem With Luna SA
    via ejbca by kamangir
    ,
  • PKCS#11
    via by 843811,
  • GitHub comment 6#261952082
    via GitHub by ChalaChalashas
    ,
    • java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_KEY_TYPE_INCONSISTENT at sun.security.pkcs11.P11Signature.engineSign(P11Signature.java:483) at java.security.Signature$Delegate.engineSign(Signature.java:1128) at java.security.Signature.sign(Signature.java:522) at org.bouncycastle.x509.X509Util.calculateSignature(Unknown Source) at org.bouncycastle.x509.X509V3CertificateGenerator.generate(Unknown Source) at org.bouncycastle.x509.X509V3CertificateGenerator.generate(Unknown Source) at org.ejbca.ui.cli.KeyStoreContainer.getSelfCertificate(KeyStoreContainer.java:157) at org.ejbca.ui.cli.KeyStoreContainer.generate(KeyStoreContainer.java:173) at org.ejbca.ui.cli.HSMKeyTool.main(HSMKeyTool.java:66) Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_KEY_TYPE_INCONSISTENT at sun.security.pkcs11.wrapper.PKCS11.C_SignFinal(Native Method) at sun.security.pkcs11.P11Signature.engineSign(P11Signature.java:445) ... 8 more
    No Bugmate found.