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, ∼3463🔥, 0💬
Popular Posts:
commons-collections4-4.2 -sources.jaris the source JAR file for Apache Commons Collections 4.2, whic...
What Is poi-scratchpad-5.2.3.jar ?poi-scratchpad-5.2.3.jar is one of the JAR files for Apache POI 5....
Apache Avalon began in 1999 as the Java Apache Server Framework and in late 2002 separated from the ...
Snappy-Java is a Java port of the "snappy", a fast C++ compresser/decompresser developed by Google. ...
How to display XML element type information with the jaxp\TypeInfoWriter.java provided in the Apache...