I tried log-in into HTTPS site with below webclient configuration but seems I'm unable to login.
final WebClient webClient = new WebClient(BrowserVersion.getDefault(), "10.52.252.31", 8080);
webClient.getOptions().setJavaScriptEnabled(true);
webClient.getCookieManager().setCookiesEnabled(true);
webClient.getOptions().setRedirectEnabled(true);
webClient.getOptions().setCssEnabled(false);
webClient.getOptions().setThrowExceptionOnScriptError(false);
webClient.getOptions().setThrowExceptionOnFailingStatusCode(false);
webClient.getOptions().setAppletEnabled(true);
webClient.setAjaxController(new NicelyResynchronizingAjaxController());
webClient.waitForBackgroundJavaScript(100000);
webClient.getOptions().setUseInsecureSSL(true);
Please provide sample code if there is any workaround.