diff --git a/examples/https/README.md b/examples/https/README.md index 6840bde9..ba5fc5cc 100644 --- a/examples/https/README.md +++ b/examples/https/README.md @@ -1,12 +1,20 @@ ## How to run demo -### 1. Install Npm +### 1. Generate a self-signed certificate (key.pem and cert.pem) +```bash +openssl genrsa -out key.pem +openssl req -new -key key.pem -out csr.pem +openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem +rm csr.pem +``` + +### 2. Install Npm ```bash yarn // npm i ``` -### 2. Start the server +### 3. Start the server ``` npm run serve ``` \ No newline at end of file