Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
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 (309)
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, 2754🔥, 0💬
Popular Posts:
JDK 11 jdk.scripting.nashorn.jm odis the JMOD file for JDK 11 Scripting Nashorn module. JDK 11 Scrip...
JDK 11 jdk.dynalink.jmod is the JMOD file for JDK 11 Dynamic Linking module. JDK 11 Dynamic Linking ...
JDK 11 jdk.crypto.mscapi.jmod is the JMOD file for JDK 11 Crypto MSCAPI module. JDK 11 Crypto MSCAPI...
The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms, it was develo...
How to download and install ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is a Java 5 J...