我在soapui中配置了webservices,并在soapui设置中的ssl密钥库中添加了带有密码的.jks文件,我成功地发布了带有肯定响应的消息。
我正在尝试用下面的代码复制它
resBuilder= new RequestSpecBuilder();
resBuilder.setKeyStore(cert,password);
resBuilder.setRelaxedHTTPSValidation();
RequestSpecification requestSpec = resBuilder.build();
response = given()
.spec(requestSpec)
.when()
.post(url);
da.addResponses(response);
当我执行代码时,我得到下面的错误
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<env:Fault>
<faultcode>No SSL Certificate Sent By Client</faultcode>
<faultstring>Authorization Failure</faultstring>
</env:Fault>
</env:Body>
</env:Envelope>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<env:Fault>
<faultcode>No SSL Certificate Sent By Client</faultcode>
<faultstring>Authorization Failure</faultstring>
</env:Fault>
</env:Body>
</env:Envelope>
我试图创建信任存储,但chrome显示证书无效,不知道如何继续
暂无答案!
目前还没有任何答案,快来回答吧!