encode() with private key in “AndroidKeyStore” return null
问题 With Android 4.3, this code return null. KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); keyStore.load(null); keyStore.setKeyEntry(alias, privateKey, null, certificateChain); PrivateKeyEntry entry=(PrivateKeyEntry)keyStore.getEntry(alias, new PasswordProtection(password)); assert(entry.getPrivateKey().getEncoded()!=null); How it's possible to get the encoded version of private key ? Or, is it possible to transmit the private key handler to another application ? Thank's 回答1: The