spejsiot/master
informatic c4098e6163 Update docker-compose file 2017-02-05 18:39:30 +01:00
..
mqtt/config Initial TLS support 2016-09-11 01:46:42 +02:00
.gitignore Initial TLS support 2016-09-11 01:46:42 +02:00
README.md Initial TLS support 2016-09-11 01:46:42 +02:00
client.py Initial TLS support 2016-09-11 01:46:42 +02:00
docker-compose.yml Update docker-compose file 2017-02-05 18:39:30 +01:00
test-client.py Initial SpejsNode code 2016-06-29 17:00:22 +02:00

README.md

openssl req -nodes -new -x509 -days 3650 -extensions v3_ca -keyout ca.key -out ca.crt
openssl genrsa -out server.key 2048
openssl req -out server.csr -key server.key -new
openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt -days 3650

# Extract SHA-1
openssl x509 -in server.crt -sha1 -noout -fingerprint | sed 's/.*=/0x/g; s/:/, 0x/g'