Enabling ssl debug for java in intellij

限于喜欢 提交于 2021-01-03 03:30:26

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!