Giter Site home page Giter Site logo

mrmichalis / jsslinfocollectionserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joshcalafell/jsslinfocollectionserver

0.0 1.0 0.0 352 KB

A simple server program for class written in Java using SSL.

Home Page: http://www.rabbitfighter.net

Shell 46.92% Java 53.08%

jsslinfocollectionserver's Introduction

JSSLInfoCollectionServer

A simple JSSL secure clint/server program that allows multithreading sockets. Multiple clients can log on simultaniously and fill out user information. Both client and server display various properties of each socket's session upon creation and subsequent connections. Once the user's information is collected,\ - for each user - the collected information is stored in a text file, i.e. 'username'.txt. Each client has the ability to keep creating usernames until they choose not to. For security, this program uses SSL, keystores, truststores, and trusted certificates, along with corrosponding passwords. This process naturally encrypts messages going to and from both client and server. Both programs can be run in either regular or debug mode. Debug mode is especially interesting if you really want to understand how this process works.

Navigation

JSSLInfoCollectionServer | Author | Purpose | Usage | Server Screenshot | Client Screenshot | Contents of User File Shell Script | Licence

Author

Joshua Michael Waggoner (@rabbitfighter81)

Purpose

This was written for my final project in CS3750-Computer/Network Secutiry class at MSU Denver

Usage

To run the client you must first use keytool to create a simple JKS keystore suitable for use with JSSE. Make a keyEntry (with public/private keys) in your keystore, then make corrosponding trustedCertEnttry (public keys only) in your truststore. Once created, the keystore goes in server directory and the truststore goes in the client directory.

    To run the server w/o debugging, you must add the following parameters:
  • java -Djavax.net.ssl.keyStore='path to keystore' -Djavax.net.ssl.keyStorePassword='password' Server 'port'
    To run the client w/o debugging, you must add the following parameters:
  • java -Djavax.net.ssl.keyStore='path to keystore' -Djavax.net.ssl.keyStorePassword='password' Client 'host name' 'port'
    To run the server w/ debugging, you must add the following parameters:
  • java -Djavax.net.ssl.keyStore='path to keystore' -Djavax.net.ssl.keyStorePassword='password' -Djavax.net.debug=all Server 'port'
    To run the client w/ debugging, you must add the following parameters:
  • java -Djavax.net.ssl.keyStore='path to keystore' -Djavax.net.ssl.keyStorePassword='password' -Djavax.net.debug=all Client 'host name' 'port'

Server Screenshot

Picture

Client Screenshot

Picture

Contents of User File

Picture

Shell Script (Bash)

I wrote a shell script to help create the truststore, keystore, and certificates, as well as help users import the certs into keystores. The script can be found here:

Licence

CCO

jsslinfocollectionserver's People

Contributors

joshcalafell avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.