Bootstrap FreeKB - Java - javax.net.debug property
Java - javax.net.debug property

Updated:   |  Java articles

javax.net.debug can be used to log events at log level debug. For example, to debug all.

public class Main {	
  public static void main(String[] args) {
    System.setProperty("javax.net.debug", "all");
  }
}

 

Or to debug only SSL.

public class Main {	
  public static void main(String[] args) {
    System.setProperty("javax.net.debug", "ssl");
  }
}

 

Or to debug SSL and handshake.

public class Main {	
  public static void main(String[] args) {
    System.setProperty("javax.net.debug", "ssl:handshake");
  }
}



Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 23bf78 in the box below so that we can be sure you are a human.