2 years ago

#47635

test-img

nikolakoco

Add a public key to a jks keystore

I have been given a public xml key in the following format:

<RSAKeyValue>
  <Modulus>MODULUS_VALUE</Modulus>
  <Exponent>EXPONENT_VALUE</Exponent>
</RSAKeyValue>

With this key I need to verify a signed message that I would receive.

I have created a keystore with keytool but I am unable to import this public key there.

Is it possible to add this public key to a blank new jks keystore that I would create?

So far I haven't been able to do exactly that. I would imply that I don't have the private key, I only have the public key in xml format.

rsa

keystore

keytool

public-key

jks

0 Answers

Your Answer

Accepted video resources