mbed client on ethernet with LWIP
Dependencies: mbed Socket lwip-eth lwip-sys lwip
Fork of mbed-client-classic-example-lwip by
Diff: security.h
- Revision:
- 11:cada08fc8a70
- Parent:
- 9:96dddeefafe4
diff -r 1280c4c21987 -r cada08fc8a70 security.h --- a/security.h Fri Feb 19 17:50:40 2016 +0000 +++ b/security.h Thu Jun 09 17:08:36 2016 +0000 @@ -1,111 +1,1 @@ - - -/* - - * Copyright (c) 2015 ARM Limited. All rights reserved. - - * SPDX-License-Identifier: Apache-2.0 - - * Licensed under the Apache License, Version 2.0 (the License); you may - - * not use this file except in compliance with the License. - - * You may obtain a copy of the License at - - * - - * http://www.apache.org/licenses/LICENSE-2.0 - - * - - * Unless required by applicable law or agreed to in writing, software - - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - - * See the License for the specific language governing permissions and - - * limitations under the License. - - */ - -#ifndef __SECURITY_H__ - -#define __SECURITY_H__ - - - -#include <inttypes.h> - - - -#define MBED_DOMAIN "d2f49a23-a3a6-4335-bcf4-01db9f945d3d" - -#define MBED_ENDPOINT_NAME "4887c197-73de-4314-aec1-43da301d6dca" - - - -const uint8_t SERVER_CERT[] = "-----BEGIN CERTIFICATE-----\r\n" - -"MIIBmDCCAT6gAwIBAgIEVUCA0jAKBggqhkjOPQQDAjBLMQswCQYDVQQGEwJGSTEN\r\n" - -"MAsGA1UEBwwET3VsdTEMMAoGA1UECgwDQVJNMQwwCgYDVQQLDANJb1QxETAPBgNV\r\n" - -"BAMMCEFSTSBtYmVkMB4XDTE1MDQyOTA2NTc0OFoXDTE4MDQyOTA2NTc0OFowSzEL\r\n" - -"MAkGA1UEBhMCRkkxDTALBgNVBAcMBE91bHUxDDAKBgNVBAoMA0FSTTEMMAoGA1UE\r\n" - -"CwwDSW9UMREwDwYDVQQDDAhBUk0gbWJlZDBZMBMGByqGSM49AgEGCCqGSM49AwEH\r\n" - -"A0IABLuAyLSk0mA3awgFR5mw2RHth47tRUO44q/RdzFZnLsAsd18Esxd5LCpcT9w\r\n" - -"0tvNfBv4xJxGw0wcYrPDDb8/rjujEDAOMAwGA1UdEwQFMAMBAf8wCgYIKoZIzj0E\r\n" - -"AwIDSAAwRQIhAPAonEAkwixlJiyYRQQWpXtkMZax+VlEiS201BG0PpAzAiBh2RsD\r\n" - -"NxLKWwf4O7D6JasGBYf9+ZLwl0iaRjTjytO+Kw==\r\n" - -"-----END CERTIFICATE-----\r\n"; - - - -const uint8_t CERT[] = "-----BEGIN CERTIFICATE-----\r\n" - -"MIIBzzCCAXOgAwIBAgIEQ1vjEzAMBggqhkjOPQQDAgUAMDkxCzAJBgNVBAYTAkZ\r\n" - -"JMQwwCgYDVQQKDANBUk0xHDAaBgNVBAMME21iZWQtY29ubmVjdG9yLTIwMTYwHh\r\n" - -"cNMTYwMjE4MTU1MzE2WhcNMTYxMjMxMDYwMDAwWjCBoTFSMFAGA1UEAxNJZDJmN\r\n" - -"DlhMjMtYTNhNi00MzM1LWJjZjQtMDFkYjlmOTQ1ZDNkLzQ4ODdjMTk3LTczZGUt\r\n" - -"NDMxNC1hZWMxLTQzZGEzMDFkNmRjYTEMMAoGA1UECxMDQVJNMRIwEAYDVQQKEwl\r\n" - -"tYmVkIHVzZXIxDTALBgNVBAcTBE91bHUxDTALBgNVBAgTBE91bHUxCzAJBgNVBA\r\n" - -"YTAkZJMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEEFQ9YDafewRZTCS8SjsHg\r\n" - -"mE1/Kn0+2V49SiQ7cePEgsoRxEFe9ZxaStozgQC/FyPU6oFCfPmZn5FzEcTUQFl\r\n" - -"2jAMBggqhkjOPQQDAgUAA0gAMEUCIQC4yg0mkwD12KD0Gmr/X3IgpbGkGiDSp2C\r\n" - -"Z1VegqjbW5wIgA9p4jN/KZHNF40XtOj6rXHFG9bfNrGY62/ceg3KYwl8=\r\n" - -"-----END CERTIFICATE-----\r\n"; - - - -const uint8_t KEY[] = "-----BEGIN PRIVATE KEY-----\r\n" - -"MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgrSBl+5yOid5hB64l\r\n" - -"Ak3+H0mjeXzx63R36P20SFHQpBqhRANCAAQQVD1gNp97BFlMJLxKOweCYTX8qfT7\r\n" - -"ZXj1KJDtx48SCyhHEQV71nFpK2jOBAL8XI9TqgUJ8+ZmfkXMRxNRAWXa\r\n" - -"-----END PRIVATE KEY-----\r\n"; - - - -#endif //__SECURITY_H__ +#error POPULATE YOUR SECURITY.H File from connector.mbed.com \ No newline at end of file