fixed secure startup
This commit is contained in:
parent
2e3ba3ae2c
commit
1c1e427efd
1 changed files with 6 additions and 2 deletions
|
@ -153,11 +153,15 @@ public class ClientHttpRequestFactoryService {
|
||||||
sslContext = SSLContextBuilder
|
sslContext = SSLContextBuilder
|
||||||
.create()
|
.create()
|
||||||
.loadTrustMaterial(trustStoreFile, password)
|
.loadTrustMaterial(trustStoreFile, password)
|
||||||
.setKeyStoreType("pkcs12")
|
.setKeyStoreType(this.environment.getProperty(
|
||||||
|
"server.ssl.key-store-type",
|
||||||
|
"pkcs12"))
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (proxy.proxyAuthType != null && proxy.proxyAuthType != ProxyAuthType.NONE) {
|
if (proxy != null &&
|
||||||
|
proxy.proxyAuthType != null &&
|
||||||
|
proxy.proxyAuthType != ProxyAuthType.NONE) {
|
||||||
|
|
||||||
log.info("Initialize ClientHttpRequestFactory with proxy auth: {} : {}",
|
log.info("Initialize ClientHttpRequestFactory with proxy auth: {} : {}",
|
||||||
proxy.proxyAuthType,
|
proxy.proxyAuthType,
|
||||||
|
|
Loading…
Reference in a new issue