Tag: http unit

HttpUnit WebConversation SSL问题

如何从WebConversation或WebRequest对象的上下文中忽略SSL证书问题? 我知道我可以创建一个接受所有证书的假TrustManager但是如何在HttpUnit上下文中设置它? 以下是我得到的例外情况: [Security:090508]Certificate chain received from my.domain.com – NUM.NUM.NUM.NUM was incomplete., [Security:090477]Certificate chain received from my.domain.com – NUM.NUM.NUM.NUM was not trusted causing SSL handshake failure. 我需要以某种方式将SSLSocket设置设置为WebConversation或WebRequest对象; 查看用于HttpUnit的JavaDocs,没有这样的方法或构造函数。 有没有办法将它包装在一个暴露SSLSocket属性的对象中?