title: Ignore certificate validation - Tomcat8 WebSocket (JSR-356)
body: <pre><code>SslContextFactory sec = new SslContextFactory();
  sec.setValidateCerts(false);
  WebSocketClient client = new WebSocketClient(sec);
  </code></pre>
  
  <p>The above code is implemented for Jetty WebSockets, to tell the java client to disable certificate validation. Is there any way I can achieve the same in Java API for Tomcat8 WebSockets (JSR-356)?</p>
  
  <p>PS: I have tried <a href="https://stackoverflow.com/questions/2893819/telling-java-to-accept-self-signed-ssl-certificate" title="telling java to accept self-signed ssl certificate">this</a> method. It didn't work for Secure WebSocket connection of Tomcat WebSockets</p>