From: Patrick Brady Date: Wed, 20 Mar 2019 22:30:02 +0000 (-0700) Subject: Changes for cdt over https X-Git-Tag: 1.5.1~5 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=6626192a480fcfc9024b8366e5a5ebec61389dbf;p=appc%2Fcdt.git Changes for cdt over https 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 Issue-ID: APPC-1551 --- diff --git a/CdtProxyService/src/main/resources/application.properties b/CdtProxyService/src/main/resources/application.properties index e8ce0d0..d33188a 100644 --- a/CdtProxyService/src/main/resources/application.properties +++ b/CdtProxyService/src/main/resources/application.properties @@ -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 index 0000000..c3efd89 Binary files /dev/null and b/CdtProxyService/src/main/resources/keystore/cdt-store.p12 differ diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 6c6dcf8..fdf4c89 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -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