Skip to content

Commit

Permalink
Fixed trust all option after reload (TlsRegistry)
Browse files Browse the repository at this point in the history
  • Loading branch information
mskacelik committed Sep 26, 2024
1 parent 5accd78 commit 47e000c
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 47e000c

Please sign in to comment.