0

I've been trying to find a good complete example of how to create both key and trust stores programatically in Java. Could somebody please show me an example or provide some links to such examples? The things I've found in Google all seem to show either how to use the command-line tool, or how to work with existing key/trust stores and I would like to be able to do this through my code (and not use the default cacert in from the JRE).

Many thanks in advance!

1 Answer 1

1

It's just an application of java.security.KeyStore, nothing magical about it. There's sample code at the top of its Javadoc.

Sign up to request clarification or add additional context in comments.

1 Comment

Are keystores and truststores the same thing? You've written such great books. Would you mind illustrating this? (I'm sorry, I'm a bit green with certificates and SSL).

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.