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

Stack Overflow | FaithReaper | 4 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

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