diff options
author | Patrick Brady <patrick.brady@att.com> | 2019-03-20 15:30:02 -0700 |
---|---|---|
committer | Patrick Brady <patrick.brady@att.com> | 2019-03-20 15:30:07 -0700 |
commit | 6626192a480fcfc9024b8366e5a5ebec61389dbf (patch) | |
tree | 695bbca7f4195157e880449f6c675419f840e7f8 | |
parent | c63fafc2383afc4422b4af458639316eaf63c0fe (diff) |
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 <patrick.brady@att.com>
Issue-ID: APPC-1551
-rw-r--r-- | CdtProxyService/src/main/resources/application.properties | 5 | ||||
-rw-r--r-- | CdtProxyService/src/main/resources/keystore/cdt-store.p12 | bin | 0 -> 4196 bytes | |||
-rw-r--r-- | src/environments/environment.ts | 8 |
3 files changed, 9 insertions, 4 deletions
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 Binary files differnew file mode 100644 index 0000000..c3efd89 --- /dev/null +++ b/CdtProxyService/src/main/resources/keystore/cdt-store.p12 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 |