Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I ignore ssl validation in play framework scala ws calls

I want to consume a web service that is using an invalid certificate (self signed)

I want to make the web service call without performing any sort of certificate validation.

How do I do it?

like image 242
The Trav Avatar asked Aug 06 '13 06:08

The Trav


People also ask

How do I ignore SSL issues?

To bypass SSL certificate validation for local and test servers, you can pass the -k or --insecure option to the Curl command. This option explicitly tells Curl to perform "insecure" SSL connections and file transfers. Curl will ignore any security warnings about an invalid SSL certificate and accept it as valid.


1 Answers

In your application.conf add the below line

ws.acceptAnyCertificate=true
like image 75
Adam Avatar answered Oct 03 '22 07:10

Adam