javax.net.ssl.SSLHandshakeException: Error signing certificate verify

Stack Overflow | FaithReaper | 2 months ago
  1. 0

    SSL Client Authentication with smart card works in Java 6 but fails in Java 7

    Stack Overflow | 4 years ago | FrizzTheSnail
    java.security.InvalidKeyException: Class does not represent an RSA key: sun.security.pkcs11.P11Key$P11PrivateKey
  2. 0

    Bouncy Castle - Dev - Problem in signing a X509 Certificate

    nabble.com | 4 months ago
    java.security.InvalidKeyException: Supplied key (sun.security.pkcs11.P11Key$P11PrivateKey) is not a RSAPrivateKey instance
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 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
  5. 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

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.security.InvalidKeyException

      The RSA asymmetric cipher only operates with RSA keys; unsupported key found (sun.security.pkcs11.P11Key$P11PrivateKey)

      at com.entrust.toolkit.security.provider.RSA.a()
    2. com.entrust.toolkit
      RSA.engineGetKeySize
      1. com.entrust.toolkit.security.provider.RSA.a(Unknown Source)
      2. com.entrust.toolkit.security.provider.RSA.engineGetKeySize(Unknown Source)
      2 frames
    3. Android Platform
      Cipher.init
      1. javax.crypto.Cipher.passCryptoPermCheck(Cipher.java:1052)
      2. javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1010)
      3. javax.crypto.Cipher.init(Cipher.java:1209)
      3 frames
    4. Java RT
      Signature.initSign
      1. java.security.Signature$CipherAdapter.engineInitSign(Signature.java:1254)
      2. java.security.Signature$Delegate.init(Signature.java:1128)
      3. java.security.Signature$Delegate.chooseProvider(Signature.java:1085)
      4. java.security.Signature$Delegate.engineInitSign(Signature.java:1158)
      5. java.security.Signature.initSign(Signature.java:529)
      5 frames
    5. Java JSSE
      RSASignature.engineInitSign
      1. sun.security.ssl.RSASignature.engineInitSign(RSASignature.java:125)
      1 frame
    6. Java RT
      Signature.initSign
      1. java.security.Signature$Delegate.engineInitSign(Signature.java:1156)
      2. java.security.Signature.initSign(Signature.java:529)
      2 frames
    7. Java JSSE
      SSLSocketImpl.startHandshake
      1. sun.security.ssl.HandshakeMessage$CertificateVerify.<init>(HandshakeMessage.java:1556)
      2. sun.security.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:1049)
      3. sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:341)
      4. sun.security.ssl.Handshaker.processLoop(Handshaker.java:901)
      5. sun.security.ssl.Handshaker.process_record(Handshaker.java:837)
      6. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1023)
      7. sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)
      8. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359)
      9. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343)
      9 frames
    8. Java RT
      HttpsURLConnectionImpl.getOutputStream
      1. sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563)
      2. sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
      3. sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1092)
      4. sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)
      4 frames
    9. gestores.comunicacion.gisscide
      HTTPS_TGSS.doHTTP_Get
      1. gestores.comunicacion.gisscide.HTTPS_TGSS.doHTTP_Get(HTTPS_TGSS.java:470)
      1 frame
    10. gestores.comunicacion
      Gestor_Comunicaciones$RecibeMensajesSSL.run
      1. gestores.comunicacion.Gestor_Comunicaciones$RecibeMensajesSSL.descargaMsgHTTPS(Gestor_Comunicaciones.java:1284)
      2. gestores.comunicacion.Gestor_Comunicaciones$RecibeMensajesSSL.run(Gestor_Comunicaciones.java:1852)
      2 frames
    11. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame