diff options
author | Rob Daugherty <rd472p@att.com> | 2018-12-05 19:03:08 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-12-05 19:03:08 +0000 |
commit | 03b31bd484e2a46da210f0b2d31b1d5447b41952 (patch) | |
tree | 2e30a3d761958e156a68612906200a7a9537907f /common | |
parent | 3b22842f0065b5fb3b8bc28974f974646d4b46cc (diff) | |
parent | 2bb9251043b543bb5005b7cf9af6ac4f58a0f733 (diff) |
Merge "Resolve Security Exploits"
Diffstat (limited to 'common')
-rw-r--r-- | common/src/main/java/org/onap/so/client/RestClientSSL.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/src/main/java/org/onap/so/client/RestClientSSL.java b/common/src/main/java/org/onap/so/client/RestClientSSL.java index ac4a8d1a7c..8369eba859 100644 --- a/common/src/main/java/org/onap/so/client/RestClientSSL.java +++ b/common/src/main/java/org/onap/so/client/RestClientSSL.java @@ -22,6 +22,7 @@ package org.onap.so.client; import java.io.FileInputStream; import java.net.URI; +import java.nio.file.Paths; import java.security.KeyStore; import java.security.NoSuchAlgorithmException; import java.util.Optional; @@ -72,7 +73,7 @@ public abstract class RestClientSSL extends RestClient { private KeyStore getKeyStore() { KeyStore ks = null; char[] password = System.getProperty(RestClientSSL.SSL_KEY_STORE_PASSWORD_KEY).toCharArray(); - try(FileInputStream fis = new FileInputStream(System.getProperty(RestClientSSL.SSL_KEY_STORE_KEY))) { + try(FileInputStream fis = new FileInputStream(Paths.get(System.getProperty(RestClientSSL.SSL_KEY_STORE_KEY)).normalize().toString())) { ks = KeyStore.getInstance(KeyStore.getDefaultType()); ks.load(fis, password); |