]> git.sur5r.net Git - freertos/blob - FreeRTOS-Labs/Demo/FreeRTOS_IoT_Libraries/include/https_demo_profile.h
Add the Labs projects provided in the V10.2.1_191129 zip file.
[freertos] / FreeRTOS-Labs / Demo / FreeRTOS_IoT_Libraries / include / https_demo_profile.h
1 /*\r
2  * FreeRTOS Kernel V10.2.1\r
3  * Copyright (C) 2019 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
4  *\r
5  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
6  * this software and associated documentation files (the "Software"), to deal in\r
7  * the Software without restriction, including without limitation the rights to\r
8  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\r
9  * the Software, and to permit persons to whom the Software is furnished to do so,\r
10  * subject to the following conditions:\r
11  *\r
12  * The above copyright notice and this permission notice shall be included in all\r
13  * copies or substantial portions of the Software.\r
14  *\r
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r
17  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\r
18  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\r
19  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
20  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
21  *\r
22  * http://www.FreeRTOS.org\r
23  * http://aws.amazon.com/freertos\r
24  *\r
25  * 1 tab == 4 spaces!\r
26  */\r
27 \r
28 /*\r
29  * Each profile corresponds to a different service. The demos that use the same\r
30  * profile share the same service. It is important to understand the\r
31  * correspondence between the preconfigured profiles and demos, since each\r
32  * service have different connection configuration and credential validation.\r
33  *\r
34  *  - mqtt_demo_profile.h is preconfigured to test.mosquitto.org MQTT broker.\r
35  * The file is used with mqtt_plain_text demo and mqtt_basic_tls_server_auth\r
36  * demo. Feel free to try out other broker with the demos.\r
37  *\r
38  *  - https_demo_profile.h (current) is preconfigured to httpbin.org server.\r
39  * The file is used with http_plain_text demo and https_basic_tls_server_auth\r
40  * demo.\r
41  *\r
42  *  - aws_iot_demo_profile.h contains information to connect to AWS\r
43  * IoT. The file is used with mqtt_tls_mutual_auth demo, https_tls_mutual_auth\r
44  * demo, and other AWS IoT related demo.\r
45  */\r
46 \r
47 #ifndef HTTPS_DEMO_PROFILE_H\r
48 #define HTTPS_DEMO_PROFILE_H\r
49 \r
50 #include "demo_config.h"\r
51 \r
52 /**\r
53  * @brief Details of the HTTPS server to connect to.\r
54  *\r
55  * Please note that many web servers will close the connection immediately after\r
56  * sending the response in order to save resources. This demo is compatible only\r
57  * with a server that persists the connection after sending a response.\r
58  *\r
59  * Port 443 is the standard port designated for encrypted HTTPS traffic.\r
60  */\r
61 #define httpsdemoprofileSERVER_ADDRESS    "httpbin.org"\r
62 \r
63 \r
64 #if ( democonfigENABLE_TLS )\r
65     #define httpsdemoprofileSERVER_PORT    443\r
66 #else\r
67     #define httpsdemoprofileSERVER_PORT    80\r
68 #endif\r
69 \r
70 /**\r
71  * @brief The server certificate for httpbin.org:443.\r
72  *\r
73  * This certificate is obtained from https://httpbin.org/ and is used to\r
74  * authenticate the HTTPS server. This demo only authenticates the server and\r
75  * does not authenticate the client.\r
76  *\r
77  * If you want to connect to any other HTTPS server other than httpbin.org,\r
78  * replace it with the certificate of the HTTPS server.\r
79  */\r
80 #define httpsdemoprofileSERVER_CERTIFICATE_PEM                           \\r
81     "-----BEGIN CERTIFICATE-----\n"                                      \\r
82     "MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsF\n" \\r
83     "ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6\n" \\r
84     "b24gUm9vdCBDQSAxMB4XDTE1MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTEL\n" \\r
85     "MAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJv\n" \\r
86     "b3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJ4gHHKeNXj\n" \\r
87     "ca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgHFzZM\n" \\r
88     "9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qw\n" \\r
89     "IFAGbHrQgLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6\n" \\r
90     "VOujw5H5SNz/0egwLX0tdHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L\n" \\r
91     "93FcXmn/6pUCyziKrlA4b9v7LWIbxcceVOF34GfID5yHI9Y/QCB/IIDEgEw+OyQm\n" \\r
92     "jgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC\n" \\r
93     "AYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3DQEBCwUA\n" \\r
94     "A4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDI\n" \\r
95     "U5PMCCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUs\n" \\r
96     "N+gDS63pYaACbvXy8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vv\n" \\r
97     "o/ufQJVtMVT8QtPHRh8jrdkPSHCa2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU\n" \\r
98     "5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2xJNDd2ZhwLnoQdeXeGADbkpy\n" \\r
99     "rqXRfboQnoZsG4q5WTP468SQvvG5\n"                                     \\r
100     "-----END CERTIFICATE-----\n"\r
101 \r
102 \r
103 #endif /* ifndef HTTPS_DEMO_PROFILE_H */\r