java.security.KeyStoreException

Key protection algorithm not found: java.security.UnrecoverableKeyException: Encrypt Private Key failed: getSecretKey failed: Password is not ASCII

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web10

  • via Unknown by Unknown author,
  • Stack trace

    • java.security.KeyStoreException: Key protection algorithm not found: java.security.UnrecoverableKeyException: Encrypt Private Key failed: getSecretKey failed: Password is not ASCII at com.sun.net.ssl.internal.ssl.PKCS12KeyStore.engineSetKeyEntry(PKCS12KeyStore.java:407) at java.security.KeyStore.setKeyEntry(KeyStore.java:848) at CertRequestTest.createKeystore(CertRequestTest.java:113) at CertRequestTest.main(CertRequestTest.java:81) Caused by: java.security.UnrecoverableKeyException: Encrypt Private Key failed: getSecretKey failed: Password is not ASCII at com.sun.net.ssl.internal.ssl.PKCS12KeyStore.encryptPrivateKey(PKCS12KeyStore.java:587) at com.sun.net.ssl.internal.ssl.PKCS12KeyStore.engineSetKeyEntry(PKCS12KeyStore.java:380) ... 3 more Caused by: java.io.IOException: getSecretKey failed: Password is not ASCII at com.sun.net.ssl.internal.ssl.PKCS12KeyStore.getPBEKey(PKCS12KeyStore.java:546) at com.sun.net.ssl.internal.ssl.PKCS12KeyStore.encryptPrivateKey(PKCS12KeyStore.java:574) ... 4 more Caused by: java.security.spec.InvalidKeySpecException: Password is not ASCII at com.sun.crypto.provider.PBEKey.init(DashoA12275) at com.sun.crypto.provider.PBEKeyFactory.engineGenerateSecret(DashoA12275) at javax.crypto.SecretKeyFactory.generateSecret(DashoA12275) at com.sun.net.ssl.internal.ssl.PKCS12KeyStore.getPBEKey(PKCS12KeyStore.java:544) ... 5 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.