java.security.UnrecoverableKeyException: Get Key failed: / by zero

GitHub | lkairies | 3 years 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

    Java-based tools do not accept a certificate without password

    GitHub | 3 years ago | lkairies
    java.security.UnrecoverableKeyException: Get Key failed: / by zero

    Root Cause Analysis

    1. java.lang.ArithmeticException

      / by zero

      at com.sun.crypto.provider.PKCS12PBECipherCore.concat()
    2. com.sun.crypto
      PKCS12PBECipherCore$PBEWithSHA1AndDESede.engineInit
      1. com.sun.crypto.provider.PKCS12PBECipherCore.concat(PKCS12PBECipherCore.java:136)
      2. com.sun.crypto.provider.PKCS12PBECipherCore.derive(PKCS12PBECipherCore.java:84)
      3. com.sun.crypto.provider.PKCS12PBECipherCore.implInit(PKCS12PBECipherCore.java:300)
      4. com.sun.crypto.provider.PKCS12PBECipherCore.implInit(PKCS12PBECipherCore.java:322)
      5. com.sun.crypto.provider.PKCS12PBECipherCore$PBEWithSHA1AndDESede.engineInit(PKCS12PBECipherCore.java:411)
      5 frames
    3. Android Platform
      Cipher.init
      1. javax.crypto.Cipher.implInit(Cipher.java:688)
      2. javax.crypto.Cipher.chooseProvider(Cipher.java:737)
      3. javax.crypto.Cipher.init(Cipher.java:1233)
      4. javax.crypto.Cipher.init(Cipher.java:1173)
      4 frames
    4. Java RT
      KeyStore.getKey
      1. sun.security.pkcs12.PKCS12KeyStore.engineGetKey(PKCS12KeyStore.java:269)
      2. java.security.KeyStore.getKey(KeyStore.java:779)
      2 frames
    5. Java JSSE
      KeyManagerFactoryImpl$SunX509.engineInit
      1. sun.security.ssl.SunX509KeyManagerImpl.<init>(SunX509KeyManagerImpl.java:131)
      2. sun.security.ssl.KeyManagerFactoryImpl$SunX509.engineInit(KeyManagerFactoryImpl.java:68)
      2 frames
    6. Java RT
      KeyManagerFactory.init
      1. javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:256)
      1 frame
    7. org.xtreemfs.foundation
      SSLOptions.<init>
      1. org.xtreemfs.foundation.SSLOptions.createSSLContext(SSLOptions.java:132)
      2. org.xtreemfs.foundation.SSLOptions.<init>(SSLOptions.java:111)
      2 frames
    8. org.xtreemfs.utils
      xtfs_scrub.main
      1. org.xtreemfs.utils.xtfs_scrub.xtfs_scrub.main(xtfs_scrub.java:396)
      1 frame