diff options
author | Ingo Bauersachs <ingo@jitsi.org> | 2012-12-07 05:11:59 +0000 |
---|---|---|
committer | Ingo Bauersachs <ingo@jitsi.org> | 2012-12-07 05:11:59 +0000 |
commit | aad6f7cb264c586bec5017b72d7ba0164d3432f3 (patch) | |
tree | 0e5b552e2d7c28e6c917af95d27bd98d6711f23d /src/net/java/sip/communicator/impl/certificate/CertificateServiceImpl.java | |
parent | b5bbadd2bc1bb61f4714c1eae0356ebcea1b7669 (diff) | |
download | jitsi-aad6f7cb264c586bec5017b72d7ba0164d3432f3.zip jitsi-aad6f7cb264c586bec5017b72d7ba0164d3432f3.tar.gz jitsi-aad6f7cb264c586bec5017b72d7ba0164d3432f3.tar.bz2 |
Add certificate revocation checking options to TLS configuration panel
Diffstat (limited to 'src/net/java/sip/communicator/impl/certificate/CertificateServiceImpl.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/certificate/CertificateServiceImpl.java | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/net/java/sip/communicator/impl/certificate/CertificateServiceImpl.java b/src/net/java/sip/communicator/impl/certificate/CertificateServiceImpl.java index 5090f26..3a52c38 100644 --- a/src/net/java/sip/communicator/impl/certificate/CertificateServiceImpl.java +++ b/src/net/java/sip/communicator/impl/certificate/CertificateServiceImpl.java @@ -154,6 +154,13 @@ public class CertificateServiceImpl {
setTrustStore();
config.addPropertyChangeListener(PNAME_TRUSTSTORE_TYPE, this);
+
+ System.setProperty("com.sun.security.enableCRLDP",
+ config.getString(PNAME_REVOCATION_CHECK_ENABLED, "false"));
+ System.setProperty("com.sun.net.ssl.checkRevocation",
+ config.getString(PNAME_REVOCATION_CHECK_ENABLED, "false"));
+ Security.setProperty("ocsp.enable",
+ config.getString(PNAME_OCSP_ENABLED, "false"));
}
public void propertyChange(PropertyChangeEvent evt)
@@ -166,17 +173,7 @@ public class CertificateServiceImpl String tsType = (String)config.getProperty(PNAME_TRUSTSTORE_TYPE);
String tsFile = (String)config.getProperty(PNAME_TRUSTSTORE_FILE);
String tsPassword = credService.loadPassword(PNAME_TRUSTSTORE_PASSWORD);
-
- //TODO remove this as soon as we ship with JRE 1.7
- //remove windows root from x64 on Java < 1.7
- if (!(OSUtils.IS_WINDOWS32
- || (OSUtils.IS_WINDOWS
- && System.getProperty("java.version").startsWith("1.7"))))
- {
- tsType = null;
- config.removeProperty(CertificateService.PNAME_TRUSTSTORE_TYPE);
- }
-
+ if(tsType != null)
System.setProperty("javax.net.ssl.trustStoreType", tsType);
else
|