Skip to content

Commit

Permalink
Merge pull request #43532 from mskacelik/tls-registry-reload-fix
Browse files Browse the repository at this point in the history
Fixed trust all option after reload (TlsRegistry)
  • Loading branch information
jmartisk authored Sep 27, 2024
2 parents f0762e4 + 47e000c commit 10ff88f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import io.quarkus.tls.TlsConfiguration;
import io.quarkus.tls.runtime.config.TlsBucketConfig;
import io.quarkus.tls.runtime.config.TlsConfigUtils;
import io.quarkus.tls.runtime.keystores.TrustAllOptions;
import io.vertx.core.Vertx;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.net.KeyCertOptions;
Expand Down Expand Up @@ -167,6 +168,8 @@ public boolean reload() {
} catch (Exception e) {
return false;
}
} else if (config.trustAll()) {
trustStoreUpdateResult = new TrustStoreAndTrustOptions(null, TrustAllOptions.INSTANCE);
}

if (keyStoreUpdateResult == null && trustStoreUpdateResult == null) {
Expand Down

0 comments on commit 10ff88f

Please sign in to comment.