Skip to content

Commit

Permalink
Explicitly set Tomcat tls13 suites when tls12 ciphers defined
Browse files Browse the repository at this point in the history
  • Loading branch information
janbrasna authored Oct 17, 2024
1 parent 90c8562 commit 9df3e19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/templates/partials/tomcat.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
port="443"
SSLEnabled="true">

<!-- TLS 1.3 requires Java 11 or higher -->
{{#if (includes "TLSv1.3" output.protocols)}}<!-- TLSv1.3 requires Java 11 or higher -->{{/if}}
<SSLHostConfig
{{#if output.ciphers.length}}
ciphers="{{{join output.ciphers ":"}}}"
ciphers="{{#if (includes "TLSv1.3" output.protocols)}}{{{join output.cipherSuites ":"}}}:{{/if}}{{{join output.ciphers ":"}}}"
{{/if}}
disableSessionTickets="true"
honorCipherOrder="{{#if output.serverPreferredOrder}}true{{else}}false{{/if}}"
protocols="{{join output.protocols ", "}}">
protocols="{{join output.protocols ","}}">

<Certificate
certificateFile="/path/to/signed_certificate"
Expand Down

0 comments on commit 9df3e19

Please sign in to comment.