diff options
author | Michael Hwang <mhwang@research.att.com> | 2019-07-17 23:24:36 -0400 |
---|---|---|
committer | Michael Hwang <mhwang@research.att.com> | 2019-07-22 10:27:06 -0400 |
commit | f14264024fc0d3103922360d2e7bb6dce114bf09 (patch) | |
tree | 8bd8b80c62ad86ec70191b3e89d06292b5091226 /README.md | |
parent | 8762e960c9df97fe93f0a996a5e8870e6059c7f8 (diff) |
Support calling inventory using HTTPS5.0.0-ONAP
Issue-ID: DCAEGEN2-1597
Change-Id: Ie1dc18ad753e5f43223ce699dfbceb1649dc6235
Signed-off-by: Michael Hwang <mhwang@research.att.com>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -43,3 +43,14 @@ Usage of production mode when config is remote stored in Consul: ``` java -jar dcae-service-change-handler-0.1.0.jar prod http://consul:8500/v1/kv/service-change-handler?raw=true ``` + +#### Use script + +[`sch.sh`](resources/sch.sh) is a script to run service change handler that connects with inventory using HTTPS. The script attempts to add a custom CA cert to the OS's key store `/etc/ssl/certs/java/cacerts` and then launches service change handler. The custom CA cert is used to validate the server-side cert provided by inventory at runtime. + +The script uses the following environment variables: + +Name | Description | Default +---- | ----------- | ------- +`PATH_TO_CACERT` | Local file path to the CA cert that needs to be added to the keystore | `/opt/cert/cacert.pem` +`SCH_ARGS` | Args to be passed into the SCH run command | `prod http://consul:8500/v1/kv/service-change-handler?raw=true` |