An online chat room based on QUIC protocol
Run Server :
cargo run --bin sophia-server
// or custom args
cargo run --bin sophia-server -- -a=0.0.0.0:5858 -c=./sophia-core/cert/cert.crt -k=./sophia-core/cert/cert.key
Run Client :
cargo run --bin sophia // default is dark theme
cargo run --bin sophia -- --theme light // use light theme
// custom args
cargo run --bin sophia -- -u tanshuo -p 666666 -c 10086 -d ./sophia-core/cert/cert.der -s localhost:5858 -t dark
Create your own custom certificate:
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -subj "/CN=localhost" -keyout cert.key -out cert.crt -addext "subjectAltName = DNS:localhost, DNS:fanlv.fun, IP:127.0.0.1"
openssl x509 -outform der -in cert.crt -out cert.der