Question: what are keystore and truststore?
Answer: Both keystore and truststore is used to store SSL certificates in Java but there is subtle difference between them. truststore is used to store public certificates while keystore is used to store private certificates of client or server.