Skip to content

Commit

Permalink
Merge pull request #226 from janbrasna/fix/jetty-tls13-ciphersuites
Browse files Browse the repository at this point in the history
Fix Jetty `intermediate`/`old` configs for TLSv1.3-only clients
  • Loading branch information
gstrauss authored Oct 8, 2024
2 parents 46f5838 + 00a5150 commit 79d7131
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/js/configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ module.exports = {
jetty: {
cipherFormat: 'iana',
highlighter: 'xml',
latestVersion: '9.4.28',
latestVersion: '12.0.12',
name: 'Jetty',
supportsHsts: false,
supportsOcspStapling: false,
Expand Down
9 changes: 7 additions & 2 deletions src/templates/partials/jetty.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Property name="jetty.sslContext.keyStorePath" default="/path/to/key_store" />
</Set>

<!-- TLS 1.3 requires Java 11 or higher -->
{{#if (includes "TLSv1.3" output.protocols)}}<!-- TLSv1.3 requires Java 11 or higher -->{{/if}}
<Set name="IncludeProtocols">
<Array type="String">
{{#each output.protocols}}
Expand All @@ -18,6 +18,11 @@
{{#if output.ciphers.length}}
<Set name="IncludeCipherSuites">
<Array type="String">
{{#if (includes "TLSv1.3" output.protocols)}}
{{#each output.cipherSuites}}
<Item>{{this}}</Item>
{{/each}}
{{/if}}
{{#each output.ciphers}}
<Item>{{this}}</Item>
{{/each}}
Expand All @@ -28,4 +33,4 @@
<Set name="useCipherSuitesOrder">
<Property name="jetty.sslContext.useCipherSuitesOrder" default="{{#if output.serverPreferredOrder}}true{{else}}false{{/if}}" />
</Set>
</Configure>
</Configure>

0 comments on commit 79d7131

Please sign in to comment.