Changes for cdt over https 64/82864/1
authorPatrick Brady <patrick.brady@att.com>
Wed, 20 Mar 2019 22:30:02 +0000 (15:30 -0700)
committerPatrick Brady <patrick.brady@att.com>
Wed, 20 Mar 2019 22:30:07 +0000 (15:30 -0700)
Configure Spring to use an https endpoint
Add sample certificates for https
Set cdt to use an https url to communicate to the proxy

Change-Id: Iaeee33d50c0e9ceb53226982639c289e757763a4
Signed-off-by: Patrick Brady <patrick.brady@att.com>
Issue-ID: APPC-1551

CdtProxyService/src/main/resources/application.properties
CdtProxyService/src/main/resources/keystore/cdt-store.p12 [new file with mode: 0644]
src/environments/environment.ts

index e8ce0d0..d33188a 100644 (file)
@@ -1,6 +1,11 @@
 #Created by Amaresh Kumar on 09/May/2018.
 #=====Application level properties START======================
 server.port=9191
+server.ssl.key-store-type=PKCS12
+server.ssl.key-store=classpath:keystore/cdt-store.p12
+server.ssl.key-store-password=test
+server.ssl.key-alias=cdt
+security.require-ssl=true
 spring.application.name=CdtProxyService
 logging.level.root=DEBUG
 Djavax.net.debug=ssl;
diff --git a/CdtProxyService/src/main/resources/keystore/cdt-store.p12 b/CdtProxyService/src/main/resources/keystore/cdt-store.p12
new file mode 100644 (file)
index 0000000..c3efd89
Binary files /dev/null and b/CdtProxyService/src/main/resources/keystore/cdt-store.p12 differ
index 6c6dcf8..fdf4c89 100644 (file)
@@ -35,9 +35,9 @@ export const environment = {
      checkTestStatus: 'http://' + window.location.hostname + ':8282/restconf/operations/appc-provider-lcm:action-status'
   */
     // APIs for CORS proxy Service.
-    getDesigns: 'http://' + window.location.hostname + ':30290/cdtService/getDesigns',
-    validateTemplate: 'http://' + window.location.hostname + ':30290/cdtService/validateTemplate',
-    testVnf: 'http://' + window.location.hostname + ':30290/cdtService/testVnf',
-    checkTestStatus: 'http://' + window.location.hostname + ':30290/cdtService/checkTestStatus'
+    getDesigns: 'https://' + window.location.hostname + ':30290/cdtService/getDesigns',
+    validateTemplate: 'https://' + window.location.hostname + ':30290/cdtService/validateTemplate',
+    testVnf: 'https://' + window.location.hostname + ':30290/cdtService/testVnf',
+    checkTestStatus: 'https://' + window.location.hostname + ':30290/cdtService/checkTestStatus'
 
 };
\ No newline at end of file