Skip to content

An implementation of E2EE instant messaging on the web

Notifications You must be signed in to change notification settings

demon-bixia/WE2EE-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run in development mode

These are the steps you need to take to run this project in development mode.

1. Generate a Self-Signed Root Certificate

Create the directories you will save the the certificates in:

  $ mkdir ./client/certificates/ && mkdir ./client/certificates/server && mkdir ./client/certificates/root && cd ./client/certificates.

Generate an rsa private key for the root certificate:

$ openssl genrsa -out root/key.pem 2048

Generate the self-signed root certificate using the private key:

$ openssl req -x509 -new -nodes -key root/key.pem -sha256 -days 365 -out root/crt.pem

2. Create a Server Certificate

Generate a private key for the server:

$ openssl genrsa -out server/key.pem 2048

Generate a certificate signing request (CSR) using the server’s private key:

$ openssl req -new -key server/key.pem -out server/csr.pem

Sign the CSR with the root certificate to create the server certificate:

$ openssl x509 -req -in server/csr.pem -CA root/crt.pem -CAkey root/key.pem -CAcreateserial -out server/crt.pem -days 365 -sha256

Run the development server

Enter the project folder and run:

$ cd .. && sudo docker compose up

visit https://localhost:5173, your browser will show a warning just ignore it a select proceed from advanced options.

About

An implementation of E2EE instant messaging on the web

Resources

Stars

Watchers

Forks

Releases

No releases published