I am writing a jar to fill apk on Google Play. Required to send the key p12, it was placed in the keystore on the poppy 
Now we need to somehow extract privatekey. Began to do so:
String ALIAS = "test1234"; char[] PASSWORD = null; KeyStore keyStore = KeyStore.getInstance("KeychainStore", "Apple"); keyStore.load(null, null); PrivateKey privateKey = (PrivateKey)keyStore.getKey(ALIAS, PASSWORD); privateKey is obtained by NullPointerException
String
Enumeration<String> al = keyStore.aliases(); I can get a list of all certificates, as well as pull out the public key. If you can not get a privatekey - are there any ready-made solutions for pulling out the key? Can shells / wrappers? Maybe somehow through bash you can pull it out?
From the fact that I managed to dig in the internet, for example, here is the question , but here about the login / password, I tried to use the shell osx-keychain-java, but it is only for pulling passwords, not for keys.
PS We can not shine p12 key in the clear, so they stuffed it in a keychain. This is the task ...
Know, direct, pliz, in the right direction.