Skip to content

fh0312/Tintolmarket---Security-Project

Repository files navigation

Projeto_1_SC_fase_2

By SegC-027 Group :

  • Alexandre Müller - FC56343
  • Diogo Ramos - FC56308
  • Francisco Henriques - FC56348

--English--

Description

Tintolmarket System, a client-server system that offers a service similar to Vivino, but allows users of the system to buy and sell wines.

How to run

1. Open a terminal within the folder where the JAR files are located.
2. Run the TintolmarketServer JAR with <port> <encryption-password> <keystore-file_path> <keystore-password>.
3. Place the images of the wines (that will be later added) in the client_files directory.
4. Run the Tintolmarket JAR with <serverAddress> <truststore> <keystore> <keystore-password> <userID>.
5. Write the desired command and press ENTER after each command to execute another one.
6. To end the client program, press the CTRL+C key combination.
7. Also, execute step 6 to terminate the server program.

Example:

    1. Open the directory where the JAR files are located.
    2. Open a terminal and execute the command "java -jar TintolmarketServer.jar 12345 adminadmin keystore.server adminadmin".
    3. Place an image in the client_files directory.
    4. Open a terminal and execute the command "java -jar Tintolmarket.jar localhost:12345 truststore.client keystore.client1 adminadmin client1".
    5. To end the programs, press the CTRL+C key combination.

--Português--

Descrição

Sistema Tintolmarket, um sistema do tipo cliente-servidor que oferece um serviço semelhante ao do Vivino, mas permitindo a compra e venda de vinhos por parte dos utilizadores do sistema.

Como correr

1. Abrir um terminal dentro da pasta onde estão colocados os jars
2. Correr o jar TintolmarketServer com <port> <password-cifra> <keystore> <password-keystore>
3. Colocar as imagens dos vinhos que serão posteriormente adicionados no diretório client_files
4. Correr o jar Tintolmarket com <serverAddress> <truststore> <keystore> <password-keystore> <userID>
5. Escrever o comando pretendido e no fim de cada comando carregar na tecla ENTER para executar outro comando.
6. Para terminar o programa cliente executar a combinação de teclas CTRL+C
7. Executar também o passo 6 para terminar o programa servidor

Exemplo:

    1. Abrir diretório onde estão os ficheiros jar
    2. Abrir um terminal e executar comando "java -jar TintolmarketServer.jar 12345 adminadmin keystore.server adminadmin" 
    3. Colocar uma imagem no diretório client_files
    4. Abrir um terminal e executar comando "java -jar Tintolmarket.jar localhost:12345 truststore.client keystore.client1 adminadmin client1"        
    5. No final para terminar os programas executar a combinação de teclas CTRL+C

About

Tintolmarket is a client-server system enabling users to buy and sell wines, similar to Vivino. Built with Java and secure communication via SSL/TLS using keystores and truststores, it ensures encrypted data exchange and authentication between clients and server for safe transactions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages