2957c8681404f1b94d89933e8c2a7766df473d56
[nonrtric.git] / sdnc-a1-controller / oam / installation / src / main / yaml / README.md
1 The SDNC-A1 controller uses the default keystore and truststore that are built into the container.
2
3 The paths and passwords for these stores are located in a properties file:
4 `nonrtric/sdnc-a1-controller/oam/installation/src/main/properties/https-props.properties`
5
6 The default truststore includes the a1simulator cert as a trusted cert which is located here:
7 <https://gerrit.o-ran-sc.org/r/gitweb?p=sim/a1-interface.git;a=tree;f=near-rt-ric-simulator/certificate;h=172c1e5aacd52d760e4416288dc5648a5817ce65;hb=HEAD>
8
9 The default keystore, truststore, and https-props.properties files can be overridden by mounting new files using the "volumes" field of docker-compose. Uncommment the following lines in docker-compose to do this, and provide paths to the new files:
10
11 ```yaml
12 #volumes:
13 #      - <path_to_keystore>:/etc/ssl/certs/java/keystore.jks:ro
14 #      - <path_to_truststore>:/etc/ssl/certs/java/truststore.jks:ro
15 #      - <path_to_https-props>:/opt/onap/sdnc/data/properties/https-props.properties:ro
16 ```
17
18 The target paths in the container should not be modified.
19
20 For example, assuming that the keystore, truststore, and https-props.properties files are located in the same directory as docker-compose:
21
22 ```yaml
23 volumes:
24       - ./new_keystore.jks:/etc/ssl/certs/java/keystore.jks:ro
25       - ./new_truststore.jks:/etc/ssl/certs/java/truststore.jks:ro
26       - ./new_https-props.properties:/opt/onap/sdnc/data/properties/https-props.properties:ro
27 ```
28
29 ## License
30
31 Copyright (C) 2020 Nordix Foundation.
32 Licensed under the Apache License, Version 2.0 (the "License")
33 you may not use this file except in compliance with the License.
34 You may obtain a copy of the License at
35
36       http://www.apache.org/licenses/LICENSE-2.0
37
38 Unless required by applicable law or agreed to in writing, software
39 distributed under the License is distributed on an "AS IS" BASIS,
40 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
41 See the License for the specific language governing permissions and
42 limitations under the License.
43
44 For more information about license please see the [LICENSE](LICENSE.txt) file for details.
45
46