HTMLUnit with FIddler and SSL

久未见 提交于 2019-12-11 19:15:42

问题


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: peer not authenticated"

Is there anyway fix around this? I want to see all SSL traffic in Fiddler.

Regards!


回答1:


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.



来源:https://stackoverflow.com/questions/10057440/htmlunit-with-fiddler-and-ssl

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