You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "weizhouapache (via GitHub)" <gi...@apache.org> on 2023/03/22 08:04:36 UTC
[GitHub] [cloudstack] weizhouapache commented on a diff in pull request #7355: Support Jetty's live cert reload on HTTPS frontend
weizhouapache commented on code in PR #7355:
URL: https://github.com/apache/cloudstack/pull/7355#discussion_r1144365188
##########
client/src/main/java/org/apache/cloudstack/ServerDaemon.java:
##########
@@ -241,6 +242,14 @@ private void createHttpsConnector(final HttpConfiguration httpConfig) {
sslConnector.setPort(httpsPort);
sslConnector.setHost(bindInterface);
server.addConnector(sslConnector);
+
+ // add scanner to auto-reload certs
+ try {
+ KeyStoreScanner scanner = new KeyStoreScanner(sslContextFactory);
+ server.addBean(scanner);
+ } catch (Throwable ex) {
Review Comment:
sonarcloud suggests
```
Catch Exception instead of Throwable.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org