I want to store a KeyPair inside AndroidKeyStore, which requires creating a certificate. This answer worked fine for RSA keys, but the KeyPair
KeyPair
AndroidKeyStore