New answers tagged


Everyone seems to not be answering the poster's original question: which is can you add a publicKey to a keystore. Yes. but its not as straight forward as adding a privatekey, trustedCertificate or secretkey You need to call setKeyEntry("youralias",PublicKey.getEncoded(), null) When you later get the key, you'll need to cast the key to the type ...

Top 50 recent answers are included