Skip to content

Commit f2b7cc9

Browse files
committed
[security] Disable insecure SSL/TLS options
1 parent 4ebd52e commit f2b7cc9

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

exist-jetty-config/src/main/resources/org/exist/jetty/etc/jetty-ssl-context.xml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,37 @@
3030
<Set name="RenegotiationAllowed"><Property name="jetty.sslContext.renegotiationAllowed" default="true"/></Set>
3131
<Set name="RenegotiationLimit"><Property name="jetty.sslContext.renegotiationLimit" default="5"/></Set>
3232
<Set name="SniRequired"><Property name="jetty.sslContext.sniRequired" default="false"/></Set>
33-
33+
34+
<!-- Eliminate Old / Insecure / Anonymous Ciphers -->
35+
<Call name="addExcludeCipherSuites">
36+
<Arg>
37+
<Array type="String">
38+
<Item>.*NULL.*</Item>
39+
<Item>.*RC4.*</Item>
40+
<Item>.*MD5.*</Item>
41+
<Item>.*DES.*</Item>
42+
<Item>.*DSS.*</Item>
43+
</Array>
44+
</Arg>
45+
</Call>
46+
47+
<!-- Eliminate Insecure Protocols
48+
Since 2014 SSLv3 is considered insecure and should be disabled.
49+
-->
50+
<Call name="addExcludeProtocols">
51+
<Arg>
52+
<Array type="java.lang.String">
53+
<Item>SSL</Item>
54+
<Item>SSLv2</Item>
55+
<Item>SSLv2Hello</Item>
56+
<Item>SSLv3</Item>
57+
</Array>
58+
</Arg>
59+
</Call>
60+
61+
<!-- TLS renegotiation is disabled too to prevent an attack based on this feature. -->
62+
<Set name="renegotiationAllowed">FALSE</Set>
63+
3464
<!-- Example of how to configure a PKIX Certificate Path revocation Checker
3565
<Call id="pkixPreferCrls" class="java.security.cert.PKIXRevocationChecker$Option" name="valueOf"><Arg>PREFER_CRLS</Arg></Call>
3666
<Call id="pkixSoftFail" class="java.security.cert.PKIXRevocationChecker$Option" name="valueOf"><Arg>SOFT_FAIL</Arg></Call>

0 commit comments

Comments
 (0)