testimage
Host a Secure Local Instant Messaging Platform
147
Running the Container
#!/bin/bash
if [[ -f ca-cert.pem ]]; then
echo 'CA Key Exists'
else
echo 'Creating CA Key'
openssl genrsa -aes256 -out ca-key.pem 4096
openssl req -new -x509 -sha256 -days 365 ca-key.pem -out ca-cert.pem
fi
ipAddr="$(hostname -I | awk '{print $1;}')"
hostname="$(hostname --fqdn)"
cakey="$(cat ca-key.pem)"
cacert="$(cat ca-cert.pem)"
echo 'Running Docker container'
sudo docker rm lsmserver -f 2> /dev/null
sudo docker run -it -e ipAddr="${ipAddr}" -e hostname="${hostname}" -e cakey="${cakey}" -e cacert="${cacert}" -p 7000:7002 -p 80:80 --name lsmserver --mount type=volume,src=lsmservervol,dst=/usr/app localsecurechat/testimage
Adding Certificate Authority Keys to User Devices
rundocker.sh you will have in that directory ca-cert.pem and ca-key.pemca-cert.pem and click SelectIf the Docker container is running on a seperate machine than the one you will access the website through, you will need to transfer the ca-cert.pem file to your other device
Command Line Interface Commands
exit Closes the websocket serveradd-user Adds a new userlist-users Lists the users and their statusContent type
Image
Digest
sha256:e0f0ac3e9…
Size
1.3 GB
Last updated
about 1 year ago
docker pull localsecurechat/testimage