Skip to content

Commit

Permalink
Allow runtime changes to Jetty keystore (openhab#1383)
Browse files Browse the repository at this point in the history
This enables the Jetty `KeyStoreScanner` to allow changing the certificate on runtime. Changes may take up to 15s to be effective.

Signed-off-by: Jan N. Klug <[email protected]>
  • Loading branch information
J-N-K authored Apr 12, 2022
1 parent 79cc7ca commit c4a1d03
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions distributions/openhab/src/main/resources/runtime/etc/jetty.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,16 @@
<Arg>org.eclipse.jetty.server.Request.maxFormContentSize</Arg>
<Arg>300000</Arg>
</Call>
<Call name="addBean">
<Arg>
<New id="keyStoreScanner" class="org.eclipse.jetty.util.ssl.KeyStoreScanner">
<Arg>
<Ref refid="sslContextFactory"/>
</Arg>
<Set name="scanInterval">
<Property name="jetty.sslContext.reload.scanInterval" default="15"/>
</Set>
</New>
</Arg>
</Call>
</Configure>

0 comments on commit c4a1d03

Please sign in to comment.