I'm on Android Pie and have two files: * client certificate (extension is .crt, but inside looks like pem - starts with -----BEGIN CERTIFICATE-----) * user key (extension is .key, inside again looks like pem, starts with -----BEGIN PRIVATE KEY-----)

When I move the .crt file to android I'm able to install it (it says it is a client certificate), but I'm not able to install the .key part.

I tried converting the key to p12, but Android can't import that (it says that there is no certificate to install when I select it):

openssl pkcs12 -export -inkey my.key -in my.crt -out cert_key.p12

And few other commands (but I don't have the command written), but without success.

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.