From 42618b870aef4eeb9e69b45d1a126e83d055fcf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 17 Aug 2015 14:19:38 +0200 Subject: [PATCH] Use more reliable host in example-tls-client Apparently TLS on mbed.org is broken again --- yotta/data/example-tls-client/README.md | 15 ++++++++------- yotta/data/example-tls-client/main.cpp | 4 ++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/yotta/data/example-tls-client/README.md b/yotta/data/example-tls-client/README.md index 0da780e46..beddd7b59 100644 --- a/yotta/data/example-tls-client/README.md +++ b/yotta/data/example-tls-client/README.md @@ -57,7 +57,7 @@ To build and run this example the requirements below are necessary: 10. The output in the terminal window should look like: ``` - {{timeout;120}} + {timeout;120}} {{host_test_name;default}} {{description;mbed TLS example HTTPS client}} {{test_id;MBEDTLS_EX_HTTPS_CLIENT}} @@ -66,6 +66,7 @@ To build and run this example the requirements below are necessary: Client IP Address is 192.168.0.2 Connecting to developer.mbed.org:443 + developer.mbed.org address: 217.140.101.20 TLS connection to developer.mbed.org established Server certificate: cert. version : 3 @@ -82,25 +83,25 @@ To build and run this example the requirements below are necessary: ext key usage : TLS Web Server Authentication, TLS Web Client Authentication Certificate verification passed - HTTPS: Received 473 chars from server + HTTPS: Received 469 chars from server HTTPS: Received 200 OK status ... [OK] HTTPS: Received 'Hello world!' status ... [OK] HTTPS: Received message: HTTP/1.1 200 OK Server: nginx/1.7.10 - Date: Tue, 28 Jul 2015 14:32:30 GMT + Date: Mon, 17 Aug 2015 11:46:19 GMT Content-Type: text/plain 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, 29 Jul 2015 00:32:30 GMT + Expires: Mon, 17 Aug 2015 21:46:19 GMT X-Upstream-L3: 172.17.42.1:8080 - X-Upstream-L2: developer-sjc-indigo-1-nginx - X-Upstream-L1-next-hop: 217.140.101.34:8001 - X-Upstream-L1: developer-sjc-indigo-border-nginx + X-Upstream-L2: developer-sjc-cyan-1-nginx + X-Upstream-L1-next-hop: 217.140.101.22:8001 + X-Upstream-L1: developer-sjc-cyan-border-nginx Hello world! {{success}} diff --git a/yotta/data/example-tls-client/main.cpp b/yotta/data/example-tls-client/main.cpp index 8a74b9b32..56be087c9 100644 --- a/yotta/data/example-tls-client/main.cpp +++ b/yotta/data/example-tls-client/main.cpp @@ -63,11 +63,11 @@ int main() { #include "lwipv4_init.h" namespace { -const char *HTTPS_SERVER_NAME = "mbed.org"; +const char *HTTPS_SERVER_NAME = "developer.mbed.org"; const int HTTPS_SERVER_PORT = 443; const int RECV_BUFFER_SIZE = 600; -const char HTTPS_PATH[] = "/assets/uploads/hello.txt"; +const char HTTPS_PATH[] = "/media/uploads/mbed_official/hello.txt"; const size_t HTTPS_PATH_LEN = sizeof(HTTPS_PATH) - 1; /* Test related data */