Dealing with SSL issues in Java web applications is no fun, especially when you have no debug or troubleshooting logs and all you see is an ugly ‘Page Cannot be displayed error message in your browser. Thankfully you can easily enable SSL to debug on your Application to start seeing verbose logs that will clearly show what happens during the SSL handshake process.
Monday, September 6, 2021
Tuesday, August 3, 2021
Difference between trustStore and keyStore in Java - SSL
trustStore
vs keyStore in Java
trustStore and keyStore are used in the context of setting up SSL connection
in Java application between client and server. TrustStore and keyStore are very
much similar in terms of construct and structure as both are managed by keytool command and represented by KeyStore programmatically but they
often confused Java programmers both beginners and intermediate alike. The only difference between trustStore and keyStore
is what they store and its purpose. In SSL handshake purpose of trustStore
is to verify credentials and the purpose of keyStore is to provide
credentials. keyStore in Java stores private key and certificates
corresponding to there public keys and require if you are SSL Server or SSL
requires client authentication.
Labels:
core java
,
core java interview question
,
Java Security Tutorial
,
SSL
Subscribe to:
Posts
(
Atom
)