diff --git a/demos/web/create-cert.sh b/demos/web/create-cert.sh new file mode 100644 index 000000000..50c9e00df --- /dev/null +++ b/demos/web/create-cert.sh @@ -0,0 +1,10 @@ +# generate self-signed certs with no password for the web and socket servers +mkdir tls +openssl genrsa -des3 -out tls/server.key 1024 +openssl req -new -key tls/server.key -out tls/server.csr +cp tls/server.key tls/server.key.org +openssl rsa -in tls/server.key.org -out tls/server.key +openssl x509 -req -days 365 -in tls/server.csr -signkey tls/server.key -out tls/server.crt +echo 'converting to pem' +cat tls/server.crt tls/server.key > tls/server.pem +echo 'cert complete' diff --git a/demos/web/index.html b/demos/web/index.html index b49ef4ee0..761d84e71 100644 --- a/demos/web/index.html +++ b/demos/web/index.html @@ -233,7 +233,7 @@