Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
-Djavax.net.debug - jsse.jar Debugging Options
How to use the -Djavax.net.debug jsse.jar debug option?
✍: FYIcenter
If you are having trouble using jsse.jar, you can use the
-Djavax.net.debug JVM property as described in this tutorial:
Compile and run the example HttpsUrlReader.java provided in the previous tutorial with the -Djavax.net.debug=help property:
\fyicenter>\local\jdk-1.8.0\bin\javac HttpsUrlReader.java
\fyicenter>\local\jdk-1.8.0\bin\java -Djavax.net.debug=help HttpsUrlReader
all turn on all debugging
ssl turn on ssl debugging
The following can be used with ssl:
record enable per-record tracing
handshake print each handshake message
keygen print key generation data
session print session activity
defaultctx print default SSL initialization
sslctx print SSLContext tracing
sessioncache print session cache tracing
keymanager print key manager tracing
trustmanager print trust manager tracing
pluggability print pluggability tracing
handshake debugging can be widened with:
data hex dump of each handshake message
verbose verbose handshake message printing
record debugging can be widened with:
plaintext hex dump of record plaintext
packet print raw SSL/TLS packets
Now you know you can use -Djavax.net.debug=all to print all debugging information.
Or you can try to use -Djavax.net.debug=ssl:handshake:
\fyicenter>\local\jdk-1.8.0\bin\java -Djavax.net.debug=ssl:handshake HttpsUrlReader | more keyStore is : keyStore type is : jks keyStore provider is : init keystore init keymanager of type SunX509 trustStore is: \local\jdk-1.8.0\jre\lib\security\cacerts trustStore type is : jks trustStore provider is : init truststore adding as trusted cert: ... *** ClientHello, TLSv1.2 ...*** main, WRITE: TLSv1.2 Handshake, length = 230 main, READ: TLSv1.2 Handshake, length = 89 *** ServerHello, TLSv1.2 ...*** %% Initialized: [Session-1, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256] ** TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 main, READ: TLSv1.2 Handshake, length = 3611 *** Certificate chain chain [0] = [ [ Version: V3 Subject: CN=www.oracle.com, OU=Content Management Services IT, O=Oracle Corporation, L=Redwood Shores, ST=California, C=US Signature Algorithm: SHA256withRSA, OID = 1.2.840.113549.1.1.11 ...
⇒ SSL Handshake Message Sequence
⇐ HttpsUrlReader.java - Reading Data from HTTPS URL
2018-03-24, ∼4106🔥, 0💬
Popular Posts:
JDK 17 jdk.jconsole.jmod is the JMOD file for JDK 17 JConsole tool, which can be invoked by the "jco...
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...
How to merge two JAR files with "jar" commands? I am tired of specifying multiple JAR files in the c...
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...
JDK 11 jdk.aot.jmod is the JMOD file for JDK 11 Ahead-of-Time (AOT) Compiler module. JDK 11 AOT Comp...