Skip to content

Update the tls-client README.md #229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 17 additions & 18 deletions tls-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ You can also compile this example with the [Mbed Online Compiler](https://os.mbe
## Requirements

This example uses by default an Ethernet connection to the internet.
It's possible to switch to another network interface by using [Easy Connect](https://github.com/ARMmbed/easy-connect/blob/master/README.md). The [Mbed OS Example Client](https://github.com/ARMmbed/mbed-os-example-client#application-setup) application shows an example of how to configure other network interfaces.
It's possible to switch to another network interface by using [the Mbed OS NetworkInterface](https://os.mbed.com/docs/latest/apis/network-interfaces.html).

The networking stack used in this example requires TLS functionality to be enabled on Mbed TLS. On devices where hardware entropy is not present, TLS is disabled by default. This would result in compile time or linking failures.

To learn why entropy is required, read the [TLS Porting guide](https://docs.mbed.com/docs/mbed-os-handbook/en/latest/advanced/tls_porting/).
To learn why entropy is required, read the [entropy Porting guide](https://os.mbed.com/docs/latest/porting/entropy-sources.html).

## Monitoring the application

Expand All @@ -25,41 +25,40 @@ The output in the terminal window should be similar to this:

```
Starting mbed-os-example-tls/tls-client
Using Mbed OS 5.6.3
[EasyConnect] IPv4 mode
Using Mbed OS 5.11.1
Successfully connected to os.mbed.com at port 443
Starting the TLS handshake...
Successfully completed the TLS handshake
Server certificate:
cert. version : 3
serial number : 65:7B:6D:8D:15:A5:B6:86:87:6B:5E:BC
issuer name : C=BE, O=GlobalSign nv-sa, CN=GlobalSign Organization Validation CA - SHA256 - G2
subject name : C=GB, ST=Cambridgeshire, L=Cambridge, O=ARM Ltd, CN=*.mbed.com
issued on : 2017-04-03 13:54:02
expires on : 2018-05-06 10:31:02
serial number : 0F:22:3C:45:F9:9B:25:DA:B5:A0:E9:E4:C3:F9:5F:9D
issuer name : C=US, O=Amazon, OU=Server CA 1B, CN=Amazon
subject name : CN=mbed.com
issued on : 2018-03-16 00:00:00
expires on : 2019-04-16 12:00:00
signed using : RSA with SHA-256
RSA key size : 2048 bits
basic constraints : CA=false
subject alt name : *.mbed.com, mbed.org, *.mbed.org, mbed.com
subject alt name : mbed.com, *.mbed.com, mbed.org, *.mbed.org
key usage : Digital Signature, Key Encipherment
ext key usage : TLS Web Server Authentication, TLS Web Client Authentication

Certificate verification passed
Established TLS connection to os.mbed.com
HTTP: Received 365 chars from server
HTTP: Received 320 chars from server
HTTP: Received '200 OK' status ... OK
HTTP: Received message:
HTTP/1.1 200 OK
Server: nginx/1.11.10
Date: Wed, 08 Nov 2017 09:07:59 GMT
Accept-Ranges: bytes
Cache-Control: max-age=36000
Content-Type: text/plain
Date: Thu, 10 Jan 2019 13:45:27 GMT
ETag: "5bf0036d-e"
Expires: Thu, 10 Jan 2019 23:45:27 GMT
Last-Modified: Sat, 17 Nov 2018 12:02:53 GMT
Server: nginx/1.15.3
Content-Length: 14
Connection: keep-alive
Last-Modified: Fri, 27 Jul 2012 13:30:34 GMT
Accept-Ranges: bytes
Cache-Control: max-age=36000
Expires: Wed, 08 Nov 2017 19:07:59 GMT
Strict-Transport-Security: max-age=31536000; includeSubdomains

Hello world!

Expand Down