java - 关闭 Karate 中的 SSL 证书验证

标签 java ssl postman karate

我正在使用 Karate 框架。由于服务器需要这样做,我尝试使用mutual auth连接到它,如下所述: https://github.com/intuit/karate#x509-certificate-authentication

* configure ssl = { trustStore : 'classpath:certstore.pfx', trustStorePassword: 'certpassword', trustStoreType: 'pkcs12' };

我收到此错误:

javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate

有谁知道如何像我在 Postman 中那样跳过 SSL 证书验证

最佳答案

这应该使用 HTTPS 但忽略证书:

* configure ssl = true

文档:https://github.com/intuit/karate#configure

关于java - 关闭 Karate 中的 SSL 证书验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55686417/

相关文章:

postman - 在预请求脚本中为 Postman 中的每个请求添加 header

java - 缺少返回语句、循环

带有身份 keystore 的 ssl weblogic

IOS MDM 许可证和 SSl 证书(测试)

javascript - 使用 iFrame 时的 IE11 安全证书问题

rest - 如何使用 postman 将用户原则传递给休息端点

json - onesignal API, postman : app_id cannot be found

java - 检查 Java Class 是否在 SVN Precommit hook 中被注释

java - Jenkins 将浏览器 URL 作为 Maven Selenium Java 测试的参数传递

java - 类中的函数