java.security.InvalidKeyException: Supplied key ( sun.security.pkcs11.P11Key$P11PrivateKey) is not a RSAPrivateKey instance

ws-fx-dev | Cristian Opincaru | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Signature with PKCS11 (smartcards)

    ws-fx-dev | 1 decade ago | Cristian Opincaru
    java.security.InvalidKeyException: Supplied key ( sun.security.pkcs11.P11Key$P11PrivateKey) is not a RSAPrivateKey instance

    Root Cause Analysis

    1. java.security.InvalidKeyException

      Supplied key ( sun.security.pkcs11.P11Key$P11PrivateKey) is not a RSAPrivateKey instance

      at org.apache.ws.security.message.WSSecSignature.computeSignature()
    2. Apache WSS4J
      WSSecSignature.build
      1. org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:603)
      2. org.apache.ws.security.message.WSSecSignature.build(WSSecSignature.java:668)
      2 frames
    3. de.unibw.s3f
      TestX509AndLicenseToken.main
      1. de.unibw.s3f.client.authentication.TestX509AndLicenseToken.main(TestX509AndLicenseToken.java:167)
      1 frame