java.security.InvalidKeyException: Keystore operation failed

osdir.com | 9 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.
  1. 0

    Signing using RSA Keys from AndroidKeyStore on Marshmallow

    Google Groups | 1 year ago | Jacob Taylor
    java.security.InvalidKeyException: Keystore operation failed
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.security.InvalidKeyException

      Keystore operation failed

      at android.security.KeyStore.getInvalidKeyException()
    2. Android Platform
      KeyStore.getInvalidKeyException
      1. android.security.KeyStore.getInvalidKeyException(KeyStore.java:692)
      2. android.security.KeyStore.getInvalidKeyException(KeyStore.java:712)
      2 frames
    3. android.security.keystore
      AndroidKeyStoreSignatureSpiBase.engineInitSign
      1. android.security.keystore.KeyStoreCryptoOperationUtils.getInvalidKeyExceptionForInit(KeyStoreCryptoOperationUtils.java:54)
      2. android.security.keystore.AndroidKeyStoreSignatureSpiBase.ensureKeystoreOperationInitialized(AndroidKeyStoreSignatureSpiBase.java:219)
      3. android.security.keystore.AndroidKeyStoreSignatureSpiBase.engineInitSign(AndroidKeyStoreSignatureSpiBase.java:99)
      4. android.security.keystore.AndroidKeyStoreSignatureSpiBase.engineInitSign(AndroidKeyStoreSignatureSpiBase.java:77)
      4 frames
    4. Java RT
      Signature.initSign
      1. java.security.Signature$SignatureImpl.engineInitSign(Signature.java:706)
      2. java.security.Signature.initSign(Signature.java:357)
      2 frames
    5. au.com.taylornetworks
      keystoreContentSigner.getSignature
      1. au.com.taylornetworks.tapid.keystoreContentSigner.getSignature(keystoreContentSigner.java:69)
      1 frame
    6. Spongy Castle
      PKCS10CertificationRequestBuilder.build
      1. org.spongycastle.pkcs.PKCS10CertificationRequestBuilder.build(PKCS10CertificationRequestBuilder.java:149)
      1 frame
    7. au.com.taylornetworks
      MainActivity.createAndShowCSR
      1. au.com.taylornetworks.tapid.pkiManager.generateCSR(pkiManager.java:78)
      2. au.com.taylornetworks.tapid.MainActivity.createAndShowCSR(MainActivity.java:42)
      2 frames
    8. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    9. Android v7
      AppCompatViewInflater$DeclaredOnClickListener.onClick
      1. android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:270)
      1 frame
    10. Android Platform
      ActivityThread.main
      1. android.view.View.performClick(View.java:5204)
      2. android.view.View$PerformClick.run(View.java:21153)
      3. android.os.Handler.handleCallback(Handler.java:739)
      4. android.os.Handler.dispatchMessage(Handler.java:95)
      5. android.os.Looper.loop(Looper.java:148)
      6. android.app.ActivityThread.main(ActivityThread.java:5417)
      6 frames
    11. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    12. Android
      ZygoteInit$MethodAndArgsCaller.run
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      1 frame