摘要: 我们使用java实现SSL安全连接,在遇到未信任的证书时,弹出一个对话框,让用户选择是否信任该站点,信任的话,就把此站点提供的证书导入本地证书库。为了实现此功能,我们需要重载X509TrustManager类StoreCertTrustManager.java----------------------------------begin-------------------------------... 阅读全文
posted @ 2010-01-20 16:47 规格严格-功夫到家 阅读(598) 评论(0) 推荐(0)
摘要: 如何在Eclipse执行 类似 JSSE 提供的 动态 debug 追踪模式列: java -Djavax.net.debug=SSL,handshake,data,trustmanager 首先确定这是一个属于运行时 VM 的一个参数, 且该参数是 -Djavax.net.debug=SSL,handshake,data,trustmanager, 所以接下来我们就需要将该参数加入到VM的Par... 阅读全文
posted @ 2010-01-20 16:46 规格严格-功夫到家 阅读(329) 评论(0) 推荐(0)
摘要: From EggeWikiJump to: navigation, searchIf you set "javax.net.debug" to "help" as in: System.setProperty("javax.net.debug","help");It will produce this useful help, and then cause your app to exit. al... 阅读全文
posted @ 2010-01-20 16:45 规格严格-功夫到家 阅读(2232) 评论(0) 推荐(0)