Monthly Archives: June 2012

Java: Disabling SSL checks for a given HttpClient

If you know what you are doing, you can disable the SSL trust and host name checks when using the HttpClient in Java. It goes like this: TrustManager[] trustAllCerts = new TrustManager[]{ new X509TrustManager() { public java.security.cert.X509Certificate[] getAcceptedIssuers() { return … Continue reading

Posted in Java | Leave a comment

Location of the log4j configuration file in a program embedding Jetty

I have a server with an embedded Jetty, for which I am now setting up the logging. Unfortunately, I can’t find a location to put the log4j.properties or log4j.xml where they would be found by default by the log4j runtime, … Continue reading

Posted in Java | Leave a comment