在IntelliJ中为Java启用SSL调试 [英] Enabling ssl debug for java in intellij

查看:329
本文介绍了在IntelliJ中为Java启用SSL调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从这里开始我的问题

尝试发送的上一个问题通过tls/ssl

我现在正尝试在Intellij中添加ssl调试.

i am now trying to add ssl debugging in Intellij.

在oracle文章中它给出了一个示例

In the oracle article it gives an example

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

如何为通过main()方法运行的独立应用程序配置环境?

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

推荐答案

所有您需要做的就是编辑运行配置.

All you need to do is edit your Run Configuration.

运行->编辑配置

Run -> Edit Configurations

然后在VM选项下输入要使用的选项.例如

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

-Djavax.net.debug = all

-Djavax.net.debug=all

应该是ssl调试所需要的.

should be all you need for ssl debugging.

这篇关于在IntelliJ中为Java启用SSL调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆