0

I have created a keystore and it includes private key and public key. I need to retrieve my public key and private key using java codes. I found a method to retrieve the private key from here. But I cannot find a way to retrieve the public key. Can anyone tell me a way to take my public key out

buddhi weerasinghe
  • 677
  • 2
  • 9
  • 17

1 Answers1

0

The zeroth entry of the corresponding certificate chain contains the corresponding public key.

user207421
  • 305,947
  • 44
  • 307
  • 483