Update README to fix `tlslient-mio` naming.

This commit is contained in:
Francis Russell 2022-10-27 14:02:02 +01:00 committed by Dirkjan Ochtman
parent aa7e96ec82
commit 88fb4b8222
1 changed files with 9 additions and 9 deletions

View File

@ -147,9 +147,9 @@ There are two example programs which use
[mio](https://github.com/carllerche/mio) to do asynchronous IO.
## Client example program
The client example program is named `tlsclient`. The interface looks like:
The client example program is named `tlsclient-mio`. The interface looks like:
```tlsclient
```tlsclient-mio
Connects to the TLS server at hostname:PORT. The default PORT
is 443. By default, this reads a request from stdin (to EOF)
before making the connection. --http replaces this with a
@ -159,9 +159,9 @@ If --cafile is not supplied, a built-in set of CA certificates
are used from the webpki-roots crate.
Usage:
tlsclient [options] [--suite SUITE ...] [--proto PROTO ...] <hostname>
tlsclient (--version | -v)
tlsclient (--help | -h)
tlsclient-mio [options] [--suite SUITE ...] [--proto PROTO ...] <hostname>
tlsclient-mio (--version | -v)
tlsclient-mio (--help | -h)
Options:
-p, --port PORT Connect to PORT [default: 443].
@ -189,7 +189,7 @@ Options:
Some sample runs:
```
$ cargo run --example tlsclient -- --http mozilla-modern.badssl.com
$ cargo run --bin tlsclient-mio -- --http mozilla-modern.badssl.com
HTTP/1.1 200 OK
Server: nginx/1.6.2 (Ubuntu)
Date: Wed, 01 Jun 2016 18:44:00 GMT
@ -201,7 +201,7 @@ Content-Length: 644
or
```
$ cargo run --example tlsclient -- --http expired.badssl.com
$ cargo run --bin tlsclient-mio -- --http expired.badssl.com
TLS error: WebPkiError(CertExpired, ValidateServerCert)
Connection closed
```
@ -258,7 +258,7 @@ Options:
```
Here's a sample run; we start a TLS echo server, then connect to it with
openssl and tlsclient:
`openssl` and `tlsclient-mio`:
```
$ cargo run --example tlsserver -- --certs test-ca/rsa/end.fullchain --key test-ca/rsa/end.rsa -p 8443 echo &
@ -267,7 +267,7 @@ depth=2 CN = ponytown RSA CA
verify error:num=19:self signed certificate in certificate chain
hello world
^C
$ echo hello world | cargo run --example tlsclient -- --cafile test-ca/rsa/ca.cert -p 8443 localhost
$ echo hello world | cargo run --bin tlsclient-mio -- --cafile test-ca/rsa/ca.cert -p 8443 localhost
hello world
^C
```