fixed secure startup

This commit is contained in:
anhefti 2019-10-08 14:21:46 +02:00
parent 2e3ba3ae2c
commit 1c1e427efd

View file

@ -153,11 +153,15 @@ public class ClientHttpRequestFactoryService {
sslContext = SSLContextBuilder
.create()
.loadTrustMaterial(trustStoreFile, password)
.setKeyStoreType("pkcs12")
.setKeyStoreType(this.environment.getProperty(
"server.ssl.key-store-type",
"pkcs12"))
.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: {} : {}",
proxy.proxyAuthType,