You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tls-client/README.md
+17-17Lines changed: 17 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,20 @@
1
1
# HTTPS File Download Example for TLS Client on mbed OS
2
2
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.
4
4
5
5
## Getting started
6
6
7
7
Set up your environment if you have not done so already. For instructions, refer to the [main readme](../README.md).
8
8
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).
10
10
11
11
## Required hardware
12
12
13
13
This example also requires an Ethernet cable and connection to the internet additional to the hardware requirements in the [main readme](../README.md).
14
14
15
15
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.
16
16
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/).
18
18
19
19
## Monitoring the application
20
20
@@ -24,42 +24,42 @@ The output in the terminal window should be similar to this:
24
24
25
25
```
26
26
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
29
29
Starting the TLS handshake...
30
-
TLS connection to developer.mbed.org established
30
+
TLS connection to os.mbed.com established
31
31
Server certificate:
32
32
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
34
34
issuer name : C=BE, O=GlobalSign nv-sa, CN=GlobalSign Organization Validation CA - SHA256 - G2
35
35
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
38
38
signed using : RSA with SHA-256
39
39
RSA key size : 2048 bits
40
40
basic constraints : CA=false
41
41
subject alt name : *.mbed.com, mbed.org, *.mbed.org, mbed.com
42
+
subject alt name : *.mbed.com, mbed.org, *.mbed.org, mbed.com
42
43
key usage : Digital Signature, Key Encipherment
43
44
ext key usage : TLS Web Server Authentication, TLS Web Client Authentication
@@ -81,9 +81,9 @@ To print out more debug information about the TLS connection, edit the file `mai
81
81
The TLS connection can fail with an error similar to:
82
82
83
83
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
85
85
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).
87
87
88
88
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.
0 commit comments