summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorburdziak <olaf.burdziakowski@nokia.com>2018-01-30 09:41:17 +0100
committerburdziak <olaf.burdziakowski@nokia.com>2018-01-30 09:41:17 +0100
commitbe11a57ad69af3bb8019adfb67578936b0e1eec0 (patch)
tree23f4e2bf099980d1e7331354005f82203d80627f
parent6b98bb3ec93a0bbfbe0e660cabc69978b53bfee8 (diff)
Fix in HttpsAuthClient
Change-Id: Ifa266c4b86d81c114956028fa2d7c59e4a0aaaae Issue-ID: AAI-705 Signed-off-by: burdziak <olaf.burdziakowski@nokia.com>
-rw-r--r--aai-core/src/main/java/org/onap/aai/util/HttpsAuthClient.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/aai-core/src/main/java/org/onap/aai/util/HttpsAuthClient.java b/aai-core/src/main/java/org/onap/aai/util/HttpsAuthClient.java
index 5deb48ae..9d15f095 100644
--- a/aai-core/src/main/java/org/onap/aai/util/HttpsAuthClient.java
+++ b/aai-core/src/main/java/org/onap/aai/util/HttpsAuthClient.java
@@ -106,13 +106,13 @@ public class HttpsAuthClient{
char[] pwd = keystore_password.toCharArray();
ks.load(fin, pwd);
kmf.init(ks, pwd);
+ ctx.init(kmf.getKeyManagers(), null, null);
} catch (Exception e) {
System.out.println("Error setting up kmf: exiting");
e.printStackTrace();
System.exit(1);
}
- ctx.init(kmf.getKeyManagers(), null, null);
config.getProperties().put(HTTPSProperties.PROPERTY_HTTPS_PROPERTIES,
new HTTPSProperties( new HostnameVerifier() {
@Override