本文介绍了使用Fiddler和SSL的HtmlUnit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我配置的HtmlUnit所以它使用菲德勒作为代理。但是,当菲德勒是捕获流量和我浏览其中有SSL站点(HTTPS)我得到在Java中出现以下错误
I configured HTMLUnit so it uses Fiddler as a proxy. But when Fiddler is capturing traffic and I browse a site which has ssl(https) I get the following error in Java
javax.net.ssl.SSLPeerUnverifiedException:同行不认证
"javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated"
反正是有解决解决这个?我希望看到提琴手所有SSL流量。
Is there anyway fix around this? I want to see all SSL traffic in Fiddler.
祺!
推荐答案
您需要配置Java信任提琴手的根证书,您可以从提琴手使用工具导出>提琴手选项> HTTPS>导出根证书按钮。
You need to configure Java to trust Fiddler's root certificate, which you can export from Fiddler using the Tools > Fiddler Options > HTTPS > Export Root Certificate button.
这篇关于使用Fiddler和SSL的HtmlUnit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!