Merge PR #3087: Fix gaia lite docs on REST server's SSL flags

* Fix gaia lite docs on REST server's SSL flags

Closes: #3086

* Fix rest-server command call

Advanced was removed long ago
This commit is contained in:
Alessio Treglia 2018-12-12 12:17:15 +00:00 committed by Christopher Goes
parent a31dc20e6a
commit f5e0379ef5
1 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ To start a REST server, we need to specify the following parameters:
For example::
```bash
gaiacli advanced rest-server --chain-id=test \
gaiacli rest-server --chain-id=test \
--laddr=tcp://localhost:1317 \
--node tcp://localhost:26657 \
--trust-node=false
@ -22,11 +22,11 @@ gaiacli advanced rest-server --chain-id=test \
The server listens on HTTPS by default. You can set the SSL certificate to be used by the server with these additional flags:
```bash
gaiacli advanced rest-server --chain-id=test \
gaiacli rest-server --chain-id=test \
--laddr=tcp://localhost:1317 \
--node tcp://localhost:26657 \
--trust-node=false \
--certfile=mycert.pem --keyfile=mykey.key
--ssl-certfile=mycert.pem --ssl-keyfile=mykey.key
```
If no certificate/keyfile pair is supplied, a self-signed certificate will be generated and its fingerprint printed out.