- Oracle Java runtime
- How to enable SSL debugging in a standalone Java program that makes SSL connections?
- You can use the following as a java argument when starting a standalone Java client.
- To get more filtered logging you can use:
- To test the same with an uploaded pure java example client, you will need to run it using the following command:
java -Djavax.net.debug=ssl:handshake:verbose:keymanager:trustmanager -Djava.security.debug=access:stack JavaHttpsClient https://example.com:port 1
- To get decrypted HTTP requests/responses:
java -Djavax.net.debug=ssl:record:plaintext JavaHttpsClient https://example.com:port 1
https://example.com:port is the server being invoked host and
HTTPS port. This can also be anything like
https://www.redhat.com. Also, "1" means the number of calls. In the above example it is only a single call.
- To show available options which can be set to
java -Djavax.net.debug=help JavaHttpsClient https://redhat.com/ 1
- Learn more
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.