问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/39310673/enabling-ssl-debug-for-java-in-intellij