aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/onap/aai/rest/RestClientProducer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/onap/aai/rest/RestClientProducer.java b/src/main/java/org/onap/aai/rest/RestClientProducer.java
index 24c8eee..4170525 100644
--- a/src/main/java/org/onap/aai/rest/RestClientProducer.java
+++ b/src/main/java/org/onap/aai/rest/RestClientProducer.java
@@ -241,10 +241,12 @@ public class RestClientProducer extends DefaultProducer {
+ " keystore=" + keystoreFilename + " keystorePassword=" + keystorePassword);
}
+ String deobfuscatedCertPassword = keystorePassword.startsWith("OBF:")?Password.deobfuscate(keystorePassword):keystorePassword;
+
// Create REST client for search service
restClient = new RestClient().validateServerHostname(false).validateServerCertChain(true)
.clientCertFile(clientCertFilename)
- .clientCertPassword(Password.deobfuscate(keystorePassword)).trustStore(keystoreFilename);
+ .clientCertPassword(deobfuscatedCertPassword).trustStore(keystoreFilename);
}
return restClient;