85353eff57069bdee291d6a362d3e3f61baa3cce
[platform/upstream/iotivity.git] / cloud / account / README
1 This project contains the Account Server code.
2
3
4 Build and Run
5
6 1) Install Apache Maven if you don't have it
7
8         http://maven.apache.org
9
10 2) Build a CloudStack. If you are building first time, then build the stack.
11
12         go to "stack" folder in root directory
13         $ mvn install -Dmaven.test.skip=true
14
15 3) Build a .jar file
16
17         $ mvn install -Dmaven.test.skip=true
18
19         - The CloudAccount-0.0.1-SNAPSHOT.jar file will be placed in the "target" folder
20
21 4) Copy the "properties" folder to inside the "target" folder
22
23 5) Run .jar file
24
25         go to "target" folder
26         $ java -jar CloudAccount-0.0.1-SNAPSHOT.jar arg1(AccountServer CoAP Server Port) arg2(TLS mode required)
27         e.g. java -jar CloudAccount-0.0.1-SNAPSHOT.jar 5685 0
28
29         - If you want to operate on TLS mode, "CLOUD_CERT_FILE(iotivitycloud.crt)" and "CLOUD_KEY_FILE(iotivitycloud.key)" files
30           should be placed in the "target" folder.
31         - If you want to provide a certificate of another server in the payload of a sign-up response (when the certificate is
32           needed for a client to connect to the server), a "ROOT_CERT_FILE(rootca.crt)" file should be placed in the "target" folder.
33         - Before you run a Accout server, You need to set up following steps.
34           1) Install MongoDB
35           2) Install Github certificates for github.com and *.github.com.
36 6) Please download: file from http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html: Java Cryptography Extension
37          1.Extract files from zip.
38          2.Place local_policy.jar and US_export_policy.jar files in/usr/lib/jvm/PATH_TO_JDK/jre/lib/security