package de.viathinksoft.statusmon.interpreter.util.web; import java.io.File; import java.security.AccessControlException; /** * * @author Daniel Marschall * */ public final class DebianTrustStore { public static final boolean init() { try { // Increase security: Enable OCSP and CRLs System.setProperty("com.sun.net.ssl.checkRevocation", "true"); System.setProperty("ocsp.enable", "true"); System.setProperty("com.sun.security.enableCRLDP", "true"); final String fn = "debian.jks"; // Use the DEBIAN TrustStore from ViaThinkSoft // Get it here: // http://www.viathinksoft.de/~daniel-marschall/code/java/java-truststore/ if (new File(fn).exists()) { System.setProperty("javax.net.ssl.trustStore", fn); System.setProperty("javax.net.ssl.trustStorePassword", "viathinksoft"); return true; } } catch (AccessControlException e) { } return false; } }