如何在Play框架Scala ws调用中忽略SSL验证
问题描述:
我想使用使用无效证书(自签名)的Web服务
I want to consume a web service that is using an invalid certificate (self signed)
我想在不执行任何类型的证书验证的情况下拨打Web服务.
I want to make the web service call without performing any sort of certificate validation.
我该怎么做?
答
在application.conf中添加以下行
In your application.conf add the below line
ws.acceptAnyCertificate=true