Skip to content

Commit 5432349

Browse files
author
Andres Amaya Garcia
authored
Merge pull request #117 from andresag01/change-mbed-server-address
Change mbed server address to os.mbed.com
2 parents 5d37ec2 + 979caa2 commit 5432349

File tree

6 files changed

+31
-32
lines changed

6 files changed

+31
-32
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This repository contains a collection of mbed TLS example applications based on
55
# Getting started
66

77
## Required hardware
8-
* An [FRDM-K64F](http://developer.mbed.org/platforms/FRDM-K64F/) development board.
8+
* An [FRDM-K64F](http://os.mbed.com/platforms/FRDM-K64F/) development board.
99
* A micro-USB cable.
1010

1111
### Other hardware
@@ -18,13 +18,13 @@ If your board has no hardware entropy source or its entropy source is not integr
1818

1919
## Required software
2020
* [mbed CLI](https://github.com/ARMmbed/mbed-cli) - to build the example program. To learn how to build mbed OS applications with mbed CLI, see the [user guide](https://github.com/ARMmbed/mbed-cli/blob/master/README.md)
21-
* [Serial port monitor](https://developer.mbed.org/handbook/SerialPC#host-interface-and-terminal-applications).
21+
* [Serial port monitor](https://os.mbed.com/handbook/SerialPC#host-interface-and-terminal-applications).
2222

23-
An alternative to mbed CLI is to use the [mbed Online Compiler](https://developer.mbed.org/compiler/). In this case, you need to import the example projects from [mbed developer](https://developer.mbed.org/) to your mbed Online Compiler session using the links below:
24-
* [authcrypt](https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-tls-authcrypt)
25-
* [benchmark](https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-tls-benchmark)
26-
* [hashing](https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-tls-hashing)
27-
* [tls-client](https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-tls-tls-client)
23+
An alternative to mbed CLI is to use the [mbed Online Compiler](https://os.mbed.com/compiler/). In this case, you need to import the example projects from [mbed developer](https://os.mbed.com/) to your mbed Online Compiler session using the links below:
24+
* [authcrypt](https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-tls-authcrypt)
25+
* [benchmark](https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-tls-benchmark)
26+
* [hashing](https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-tls-hashing)
27+
* [tls-client](https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-tls-tls-client)
2828

2929
## Building and running the examples
3030

@@ -53,9 +53,9 @@ Please browse the subdirectories for specific documentation.
5353
* [authcrypt](./authcrypt/README.md): performs authenticated encryption and authenticated decryption of a buffer.
5454
* [benchmark](./benchmark/README.md): benchmarks the various cryptographic primitives offered by mbed TLS.
5555
* [hashing](./hashing/README.md): performs hashing of a buffer with SHA-256 using various APIs.
56-
* [tls-client](./tls-client/README.md): downloads a file from an HTTPS server (developer.mbed.org) and looks for a specific string in that file.
56+
* [tls-client](./tls-client/README.md): downloads a file from an HTTPS server (os.mbed.com) and looks for a specific string in that file.
5757
58-
The application prints debug messages over the serial port, so you can monitor its activity with a serial terminal emulator. Start the [serial terminal emulator](https://developer.mbed.org/handbook/Terminals) and connect to the [virtual serial port](https://developer.mbed.org/handbook/SerialPC#host-interface-and-terminal-applications) presented by FRDM-K64F. Use the following settings:
58+
The application prints debug messages over the serial port, so you can monitor its activity with a serial terminal emulator. Start the [serial terminal emulator](https://os.mbed.com/handbook/Terminals) and connect to the [virtual serial port](https://os.mbed.com/handbook/SerialPC#host-interface-and-terminal-applications) presented by FRDM-K64F. Use the following settings:
5959
6060
* 9600 baud.
6161
* 8N1.

authcrypt/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This application performs authenticated encryption and authenticated decryption
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-authcrypt).
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-authcrypt).
1010

1111
## Monitoring the application
1212

benchmark/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This application benchmarks the various cryptographic primitives offered by mbed
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-benchmark).
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-benchmark).
1010

1111
## Monitoring the application
1212

hashing/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This application performs hashing of a buffer with SHA-256 using various APIs. I
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-hashing).
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-hashing).
1010

1111
## Monitoring the application
1212

tls-client/README.md

+16-17
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,17 +24,17 @@ 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
@@ -43,23 +43,22 @@ Server certificate:
4343
ext key usage : TLS Web Server Authentication, TLS Web Client Authentication
4444
Certificate verification passed
4545
46-
HTTPS: Received 439 chars from server
4746
HTTPS: Received 200 OK status ... [OK]
4847
HTTPS: Received 'Hello world!' status ... [OK]
4948
HTTPS: Received message:
5049
5150
HTTP/1.1 200 OK
52-
Server: nginx/1.7.10
53-
Date: Wed, 20 Jul 2016 10:00:35 GMT
51+
Server: nginx/1.11.12
52+
Date: Mon, 18 Sep 2017 12:54:59 GMT
5453
Content-Type: text/plain
5554
Content-Length: 14
5655
Connection: keep-alive
5756
Last-Modified: Fri, 27 Jul 2012 13:30:34 GMT
5857
Accept-Ranges: bytes
5958
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
59+
Expires: Mon, 18 Sep 2017 22:54:59 GMT
60+
X-Upstream-L3: 172.17.0.4:80
61+
X-Upstream-L2: developer-sjc-cyan-1-nginx
6362
Strict-Transport-Security: max-age=31536000; includeSubdomains
6463
6564
Hello world!
@@ -81,9 +80,9 @@ To print out more debug information about the TLS connection, edit the file `mai
8180
The TLS connection can fail with an error similar to:
8281

8382
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
83+
Failed to fetch /media/uploads/mbed_official/hello.txt from os.mbed.com:443
8584

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).
85+
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).
8786

8887
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.
8988

tls-client/main.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
/** \file main.cpp
2323
* \brief An example TLS Client application
24-
* This application sends an HTTPS request to developer.mbed.org and searches for a string in
24+
* This application sends an HTTPS request to os.mbed.com and searches for a string in
2525
* the result.
2626
*
2727
* This example is implemented as a logic class (HelloHTTPS) wrapping a TCP socket.
@@ -50,7 +50,7 @@
5050

5151
namespace {
5252

53-
const char *HTTPS_SERVER_NAME = "developer.mbed.org";
53+
const char *HTTPS_SERVER_NAME = "os.mbed.com";
5454
const int HTTPS_SERVER_PORT = 443;
5555
const int RECV_BUFFER_SIZE = 600;
5656

@@ -64,7 +64,7 @@ const char *HTTPS_HELLO_STR = "Hello world!";
6464
const char *DRBG_PERS = "mbed TLS helloword client";
6565

6666
/* List of trusted root CA certificates
67-
* currently only GlobalSign, the CA for developer.mbed.org
67+
* currently only GlobalSign, the CA for os.mbed.com
6868
*
6969
* To add more than one root, just concatenate them.
7070
*/

0 commit comments

Comments
 (0)