Skip to content

Commit

Permalink
updated flags
Browse files Browse the repository at this point in the history
  • Loading branch information
postmannen committed May 20, 2022
1 parent 204ad1c commit d947557
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,27 @@ or with mTLS

`./server -vid="0557" -pid="2008" -mtls=true`

#### Flags

```text
-baud int
baud rate (default 9600)
-caCert string
the path to the ca certificate. There is a helper script 'gencert.sh' who will generate self signed certificates if you don't have other certificates to use (default "../certs/ca-cert.pem")
-cert string
the path to the server certificate (default "../certs/server-cert.pem")
-ipPort string
ip:port for where to start the network listener (default "127.0.0.1:45000")
-key string
the path to the private key (default "../certs/server-key.pem")
-mtls
set to true to enable, and also set caCert and cert flags
-pid string
usb PID
-vid string
usb VID
````
### Client
`./client`
Expand All @@ -39,6 +60,21 @@ Enable mTLS
`./client -addCR=true -mtls=true`
#### Flags
```text
-caCert string
the path to the ca certificate. There is a helper script 'gencert.sh' who will generate self signed certificates if you don't have other certificates to use (default "../certs/ca-cert.pem")
-cert string
the path to the server certificate (default "../certs/client-cert.pem")
-ipPort string
ip:port of the host to connec to (default "127.0.0.1:45000")
-key string
the path to the private key (default "../certs/client-key.pem")
-mtls
set to true to enable, and also set caCert and cert flags
```

### mTLS

For authenticating and encryption mTLS are supported.
Expand Down

0 comments on commit d947557

Please sign in to comment.