Open BrookShiwenge opened 2 years ago
I have set sslContext into DiscoveryClient.DiscoveryClientOptionalArgs . But now it seems the configuration doesn't work! I hope get a specification guide about configuration of peer eureka nodes in https protocol
@Bean public SSLContext sslContext() throws Exception { return SSLContextBuilder. create(). loadTrustMaterial(ResourceUtils.getFile(trustStorePath), trustStorePassword.toCharArray()). build(); } @Bean public DiscoveryClient.DiscoveryClientOptionalArgs discoveryClientOptionalArgs(SSLContext sslContext) { DiscoveryClient.DiscoveryClientOptionalArgs discoveryClientOptionalArgs = new DiscoveryClient.DiscoveryClientOptionalArgs(); discoveryClientOptionalArgs.setSSLContext(sslContext); discoveryClientOptionalArgs.setHostnameVerifier(new AllowAllHostnameVerifier()); return discoveryClientOptionalArgs; }
hihi, did you fixed this problem? What is the solution?
I have set sslContext into DiscoveryClient.DiscoveryClientOptionalArgs . But now it seems the configuration doesn't work! I hope get a specification guide about configuration of peer eureka nodes in https protocol