I am doing a https post and I\'m getting an exception of ssl exception Not trusted server certificate. If i do normal http it is working perfectly fine. Do I have to accept
Probably you can try something like this. This helped me
SslContextFactory sec = new SslContextFactory(); sec.setValidateCerts(false); sec.setTrustAll(true); org.eclipse.jetty.websocket.client.WebSocketClient client = new WebSocketClient(sec);