Web Notes for Michael Wan

Just some notes in GitHub ...

Java enable SSL debug (include spring-boot:run)

Post Date: 2024-05-05

For Java program which is not calling via spring-boot:run, you can add JVM argument -Djavax.net.debug=ssl:handshake:keymanager:trustmanager to enable the SSL debug.

For spring-boot:run program, you can add argument -Dspring-boot.run.jvmArguments="-Djavax.net.debug=ssl:handshake:keymanager:trustmanager" to enable the SSL debug or you can declare it inside code as below.


System.setProperty("javax.net.debug", "ssl:handshake:keymanager:trustmanager")

References: