[AAI-244] grep scan
[aai/sparky-be.git] / src / main / java / org / openecomp / sparky / util / KeystoreBuilder.java
index 6b6a937..916b1e9 100644 (file)
@@ -244,8 +244,8 @@ public class KeystoreBuilder {
   private X509Certificate[] getCertificateChainForRemoteEndpoint(String hostname, int port)
       throws UnknownHostException, IOException {
 
-    System.out.println("Opening connection to localhost:8442..");
-    SSLSocket socket = (SSLSocket) sslSocketFactory.createSocket("aai-int1.dev.att.com", 8440);
+    System.out.println("Opening connection to "+hostname+":"+port+"..");
+    SSLSocket socket = (SSLSocket) sslSocketFactory.createSocket(hostname, port);
     socket.setSoTimeout(10000);
 
     try {
@@ -499,8 +499,6 @@ public class KeystoreBuilder {
    */
   public static void main(String[] args) throws Exception {
 
-    // String endpointList = "aai-int1.test.att.com:8440;aai-int1.dev.att.com:8442";
-
     /*
      * Examples: localhost:8440;localhost:8442 d:\1\adhoc_keystore.jks aaiDomain2 false
      * localhost:8440;localhost:8442 d:\1\adhoc_keystore.jks aaiDomain2 true