Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enabling ssl debug for java in intellij

Following on from my problem here

previous issue trying to send java mail via tls/ssl

i am now trying to add ssl debugging in Intellij.

In the oracle article it gives an example

    java  -Djavax.net.debug=all  \
    -Djavax.net.ssl.trustStore=trustStore
    SSLSocketClientWithClientAuth bongos 2001 /index.html

How do i configure my environment for a standalone application which runs via main() method?

like image 527
L-Samuels Avatar asked Dec 14 '22 03:12

L-Samuels


1 Answers

All you need to do is edit your Run Configuration.

Run -> Edit Configurations

And then under the VM options enter the options you want to use. For example

-Djavax.net.debug=all

should be all you need for ssl debugging.

like image 103
Allen Avatar answered Dec 23 '22 15:12

Allen