From: Ahmed A. <asa...@ya...> - 2014-06-18 08:17:33
|
Hi, 2.15 contains that feature in .getOptions() Ahmed > On Jun 18, 2014, at 6:26 AM, Ashutosh Sharma <ash...@gm...> wrote: > > In my standalone java program i am using the code like this: > ---------------------------------------------------------------------------------------------------------------------------------------------------- > > System.setProperty("javax.net.ssl.trustStore", "C:\\Program Files\\OracleJDK16_30b64\\jre\\lib\\security\\cacerts"); > System.setProperty("javax.net.ssl.trustStorePassword", "changeit"); > > File certFile = new File("C:/Program Files/OracleJDK16_30b64/jre/lib/security/cacerts"); > URL certURL = null; > try > { > certURL = certFile.toURI().toURL(); > } catch (MalformedURLException e1) > { > // TODO Auto-generated catch block > e1.printStackTrace(); > } > > webClient.getOptions().setSSLClientCertificate(certURL, "changeit", "JKS");//"jks" or "pkcs12". > ---------------------------------------------------------------------------------------------------------------------------------------------------- > > It's working all fine. I am using htmlunit-2.14. > > Now i have to use the same code in Server environment under the container - IBM WAS8 Application Server. > For that i need to read the trust store and then make use of it in my code. > Is there any help or sample code available for doing that in IBM WAS8 or any other similar kind of containers? > > Please help. > -- > With best Regards: > Ashutosh Sharma > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |