Skip to content

Commit 640bf64

Browse files
Andres Amaya GarciaAndres Amaya Garcia
authored andcommitted
Update main tls-client README to use new mbed OS server URL
1 parent 43d0c05 commit 640bf64

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

tls-client/README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# HTTPS File Download Example for TLS Client on mbed OS
22

3-
This application downloads a file from an HTTPS server (developer.mbed.org) and looks for a specific string in that file.
3+
This application downloads a file from an HTTPS server (os.mbed.com) and looks for a specific string in that file.
44

55
## Getting started
66

77
Set up your environment if you have not done so already. For instructions, refer to the [main readme](../README.md).
88

9-
You can also compile this example with the [mbed Online Compiler](https://developer.mbed.org/compiler/) by using [this project](https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-tls-tls-client).
9+
You can also compile this example with the [mbed Online Compiler](https://os.mbed.com/compiler/) by using [this project](https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-tls-tls-client).
1010

1111
## Required hardware
1212

1313
This example also requires an Ethernet cable and connection to the internet additional to the hardware requirements in the [main readme](../README.md).
1414

1515
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.
1616

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

1919
## Monitoring the application
2020

@@ -24,42 +24,42 @@ The output in the terminal window should be similar to this:
2424

2525
```
2626
Using Ethernet LWIP
27-
Client IP Address is 10.2.203.43
28-
Connecting with developer.mbed.org
27+
Client IP Address is 172.16.8.12
28+
Connecting with os.mbed.com
2929
Starting the TLS handshake...
30-
TLS connection to developer.mbed.org established
30+
TLS connection to os.mbed.com established
3131
Server certificate:
3232
cert. version : 3
33-
serial number : 11:21:B8:47:9B:21:6C:B1:C6:AF:BC:5D:0C:19:52:DC:D7:C3
33+
serial number : 65:7B:6D:8D:15:A5:B6:86:87:6B:5E:BC
3434
issuer name : C=BE, O=GlobalSign nv-sa, CN=GlobalSign Organization Validation CA - SHA256 - G2
3535
subject name : C=GB, ST=Cambridgeshire, L=Cambridge, O=ARM Ltd, CN=*.mbed.com
36-
issued on : 2016-03-03 12:26:08
37-
expires on : 2017-04-05 10:31:02
36+
issued on : 2017-04-03 13:54:02
37+
expires on : 2018-05-06 10:31:02
3838
signed using : RSA with SHA-256
3939
RSA key size : 2048 bits
4040
basic constraints : CA=false
4141
subject alt name : *.mbed.com, mbed.org, *.mbed.org, mbed.com
42+
subject alt name : *.mbed.com, mbed.org, *.mbed.org, mbed.com
4243
key usage : Digital Signature, Key Encipherment
4344
ext key usage : TLS Web Server Authentication, TLS Web Client Authentication
4445
Certificate verification passed
4546
46-
HTTPS: Received 439 chars from server
4747
HTTPS: Received 200 OK status ... [OK]
4848
HTTPS: Received 'Hello world!' status ... [OK]
4949
HTTPS: Received message:
5050
5151
HTTP/1.1 200 OK
52-
Server: nginx/1.7.10
53-
Date: Wed, 20 Jul 2016 10:00:35 GMT
52+
Server: nginx/1.11.12
53+
Date: Mon, 18 Sep 2017 12:54:59 GMT
5454
Content-Type: text/plain
5555
Content-Length: 14
5656
Connection: keep-alive
5757
Last-Modified: Fri, 27 Jul 2012 13:30:34 GMT
5858
Accept-Ranges: bytes
5959
Cache-Control: max-age=36000
60-
Expires: Wed, 20 Jul 2016 20:00:35 GMT
61-
X-Upstream-L3: 172.17.0.3:80
62-
X-Upstream-L2: developer-sjc-indigo-1-nginx
60+
Expires: Mon, 18 Sep 2017 22:54:59 GMT
61+
X-Upstream-L3: 172.17.0.4:80
62+
X-Upstream-L2: developer-sjc-cyan-1-nginx
6363
Strict-Transport-Security: max-age=31536000; includeSubdomains
6464
6565
Hello world!
@@ -81,9 +81,9 @@ To print out more debug information about the TLS connection, edit the file `mai
8181
The TLS connection can fail with an error similar to:
8282

8383
mbedtls_ssl_write() failed: -0x2700 (-9984): X509 - Certificate verification failed, e.g. CRL, CA or signature check failed
84-
Failed to fetch /media/uploads/mbed_official/hello.txt from developer.mbed.org:443
84+
Failed to fetch /media/uploads/mbed_official/hello.txt from os.mbed.com:443
8585

86-
This probably means you need to update the contents of the `SSL_CA_PEM` constant (this can happen if you modify `HTTPS_SERVER_NAME`, or when `developer.mbed.org` switches to a new CA when updating its certificate).
86+
This probably means you need to update the contents of the `SSL_CA_PEM` constant (this can happen if you modify `HTTPS_SERVER_NAME`, or when `os.mbed.com` switches to a new CA when updating its certificate).
8787

8888
Another possible reason for this error is a proxy providing a different certificate. Proxies can be used in some network configurations or for performing man-in-the-middle attacks. If you choose to ignore this error and proceed with the connection anyway, you can change the definition of `UNSAFE` near the top of the file from 0 to 1.
8989

0 commit comments

Comments
 (0)