|
12 | 12 |
|
13 | 13 | <Configure id="sslContextFactory" class="org.eclipse.jetty.util.ssl.SslContextFactory$Server">
|
14 | 14 | <Set name="Provider"><Property name="jetty.sslContext.provider"/></Set>
|
15 |
| - <Set name="KeyStorePath"><Property name="jetty.base" default="." />/<Property name="jetty.sslContext.keyStorePath" deprecated="jetty.keystore" default="etc/keystore"/></Set> |
| 15 | + <Set name="KeyStorePath"><Property name="jetty.base" default="." />/<Property name="jetty.sslContext.keyStorePath" deprecated="jetty.keystore" default="etc/keystore.p12"/></Set> |
16 | 16 | <Set name="KeyStorePassword"><Property name="jetty.sslContext.keyStorePassword" deprecated="jetty.keystore.password" default="OBF:1yta1t331v8w1v9q1t331ytc"/></Set>
|
17 |
| - <Set name="KeyStoreType"><Property name="jetty.sslContext.keyStoreType" default="JKS"/></Set> |
| 17 | + <Set name="KeyStoreType"><Property name="jetty.sslContext.keyStoreType" default="PKCS12"/></Set> |
18 | 18 | <Set name="KeyStoreProvider"><Property name="jetty.sslContext.keyStoreProvider"/></Set>
|
| 19 | + <Set name="CertAlias"><Property name="jetty.keystore.alias" default="existdb"/></Set> |
19 | 20 | <Set name="KeyManagerPassword"><Property name="jetty.sslContext.keyManagerPassword" deprecated="jetty.keymanager.password" default="OBF:1yta1t331v8w1v9q1t331ytc"/></Set>
|
20 |
| - <Set name="TrustStorePath"><Property name="jetty.base" default="." />/<Property name="jetty.sslContext.trustStorePath" deprecated="jetty.truststore" default="etc/keystore"/></Set> |
| 21 | + <Set name="TrustStorePath"><Property name="jetty.base" default="." />/<Property name="jetty.sslContext.trustStorePath" deprecated="jetty.truststore" default="etc/keystore.p12"/></Set> |
21 | 22 | <Set name="TrustStorePassword"><Property name="jetty.sslContext.trustStorePassword" deprecated="jetty.truststore.password" default="OBF:1yta1t331v8w1v9q1t331ytc"/></Set>
|
22 |
| - <Set name="TrustStoreType"><Property name="jetty.sslContext.trustStoreType"/></Set> |
| 23 | + <Set name="TrustStoreType"><Property name="jetty.sslContext.trustStoreType" default="PKCS12"/></Set> |
23 | 24 | <Set name="TrustStoreProvider"><Property name="jetty.sslContext.trustStoreProvider"/></Set>
|
24 | 25 | <Set name="EndpointIdentificationAlgorithm"><Property name="jetty.sslContext.endpointIdentificationAlgorithm"/></Set>
|
25 | 26 | <Set name="NeedClientAuth"><Property name="jetty.sslContext.needClientAuth" deprecated="jetty.ssl.needClientAuth" default="false"/></Set>
|
|
30 | 31 | <Set name="RenegotiationAllowed"><Property name="jetty.sslContext.renegotiationAllowed" default="true"/></Set>
|
31 | 32 | <Set name="RenegotiationLimit"><Property name="jetty.sslContext.renegotiationLimit" default="5"/></Set>
|
32 | 33 | <Set name="SniRequired"><Property name="jetty.sslContext.sniRequired" default="false"/></Set>
|
33 |
| - |
| 34 | + |
| 35 | + <!-- Eliminate Old / Insecure / Anonymous Ciphers --> |
| 36 | + <Call name="addExcludeCipherSuites"> |
| 37 | + <Arg> |
| 38 | + <Array type="String"> |
| 39 | + <Item>.*NULL.*</Item> |
| 40 | + <Item>.*RC4.*</Item> |
| 41 | + <Item>.*MD5.*</Item> |
| 42 | + <Item>.*DES.*</Item> |
| 43 | + <Item>.*DSS.*</Item> |
| 44 | + </Array> |
| 45 | + </Arg> |
| 46 | + </Call> |
| 47 | + |
| 48 | + <!-- Eliminate Insecure Protocols |
| 49 | + Since 2014 SSLv3 is considered insecure and should be disabled. |
| 50 | + --> |
| 51 | + <Call name="addExcludeProtocols"> |
| 52 | + <Arg> |
| 53 | + <Array type="java.lang.String"> |
| 54 | + <Item>SSL</Item> |
| 55 | + <Item>SSLv2</Item> |
| 56 | + <Item>SSLv2Hello</Item> |
| 57 | + <Item>SSLv3</Item> |
| 58 | + </Array> |
| 59 | + </Arg> |
| 60 | + </Call> |
| 61 | + |
| 62 | + <!-- TLS renegotiation is disabled too to prevent an attack based on this feature. --> |
| 63 | + <Set name="renegotiationAllowed">FALSE</Set> |
| 64 | + |
34 | 65 | <!-- Example of how to configure a PKIX Certificate Path revocation Checker
|
35 | 66 | <Call id="pkixPreferCrls" class="java.security.cert.PKIXRevocationChecker$Option" name="valueOf"><Arg>PREFER_CRLS</Arg></Call>
|
36 | 67 | <Call id="pkixSoftFail" class="java.security.cert.PKIXRevocationChecker$Option" name="valueOf"><Arg>SOFT_FAIL</Arg></Call>
|
|
0 commit comments