The goal of this project is to implement a distributed password manager with dependability guarantees.
Before testing if remote object calling is working, please open a terminal window and write the following :
(For linux) rmiregistry &
(For Windows) start rmiregistry
To Run:
-
Go to the project folder on the terminal and run the following command (creates 1 client and 4 servers):
- sh autoSetup.sh
-
Insert KeyStore spassword "sec" when prompted on each Client.
Other commands:
-
To generate N key pairs: cd keyStore sh keyGen.sh (N)
-
To change the number of servers and clients in autoSetup.sh: Change in line 7 from "sh servers.sh 4" to "sh servers.sh (new num servers)" Change in line 12 from "sh clients.sh 1 4" to "sh clients.sh (new num clients) (new num servers)"
-
To start manually N servers: cd dependablePasswordManager sh servers.sh (N)
-
To start manually N clients: cd dependablePasswordManagerClient sh clients.sh (N) (num servers)
-
To start a client with a specific client id mvn compile exec:java -Dexec.args="(client id) (num servers)"
-
To run client tests: (located at: dependablePasswordManagerClient/src/test/java/pt/ulisboa/ist/sec/ClientTest.java) cd dependablePasswordManager mvn compile test
-
To run server tests: (located at: dependablePasswordManagerClient/src/test/java/pt/ulisboa/ist/sec/ServerTest.java) cd dependablePasswordManagerClient mvn compile test
Note: Insert KeyStore password "sec" when prompted on each Server.