Vertx config retriever does not work with spring-cloud-config server with HTTPS even if the spring-cloud-config server is configured with proper certificate (not self signed) . Underlying exception says "Connection closed"
ConfigStoreOptions springCloudStore =
new ConfigStoreOptions()
.setType("spring-config-server")
.setConfig(
new JsonObject()
.put("url", String.format("https://some-cloud-config-server.com/application/profile", profile))
.put("ssl", true)
.put("timeout", 60000)
.put("user", "dummy-user")
.put("password", "secret")
);
ConfigRetriever retriever =
ConfigRetriever.create(
vertx,
new ConfigRetrieverOptions()
.addStore(springCloudStore)
);
retriever.getConfig(json -> {
if (json.failed()) {
log.error("failed to retrieve config {}", json.cause().getMessage());
return;
}
Questions
Vertx config retriever does not work with spring-cloud-config server with HTTPS even if the spring-cloud-config server is configured with proper certificate (not self signed) . Underlying exception says "Connection closed"
Sample code:
Version
4.3.3