FRDM K64F Metronome

Committer:
ram54288
Date:
Sun May 14 18:37:05 2017 +0000
Revision:
0:dbad57390bd1
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ram54288 0:dbad57390bd1 1 /*
ram54288 0:dbad57390bd1 2 * Copyright (c) 2015 ARM Limited. All rights reserved.
ram54288 0:dbad57390bd1 3 * SPDX-License-Identifier: Apache-2.0
ram54288 0:dbad57390bd1 4 * Licensed under the Apache License, Version 2.0 (the License); you may
ram54288 0:dbad57390bd1 5 * not use this file except in compliance with the License.
ram54288 0:dbad57390bd1 6 * You may obtain a copy of the License at
ram54288 0:dbad57390bd1 7 *
ram54288 0:dbad57390bd1 8 * http://www.apache.org/licenses/LICENSE-2.0
ram54288 0:dbad57390bd1 9 *
ram54288 0:dbad57390bd1 10 * Unless required by applicable law or agreed to in writing, software
ram54288 0:dbad57390bd1 11 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
ram54288 0:dbad57390bd1 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
ram54288 0:dbad57390bd1 13 * See the License for the specific language governing permissions and
ram54288 0:dbad57390bd1 14 * limitations under the License.
ram54288 0:dbad57390bd1 15 */
ram54288 0:dbad57390bd1 16 #ifndef __SECURITY_H__
ram54288 0:dbad57390bd1 17 #define __SECURITY_H__
ram54288 0:dbad57390bd1 18
ram54288 0:dbad57390bd1 19 #include <inttypes.h>
ram54288 0:dbad57390bd1 20
ram54288 0:dbad57390bd1 21 #define MBED_DOMAIN "2a7bde8c-76ea-42e0-b202-5d48e76da06e"
ram54288 0:dbad57390bd1 22 #define MBED_ENDPOINT_NAME "59bfc602-7591-4914-b942-6010a1785ee2"
ram54288 0:dbad57390bd1 23
ram54288 0:dbad57390bd1 24 const uint8_t SERVER_CERT[] = "-----BEGIN CERTIFICATE-----\r\n"
ram54288 0:dbad57390bd1 25 "MIIBmDCCAT6gAwIBAgIEVUCA0jAKBggqhkjOPQQDAjBLMQswCQYDVQQGEwJGSTEN\r\n"
ram54288 0:dbad57390bd1 26 "MAsGA1UEBwwET3VsdTEMMAoGA1UECgwDQVJNMQwwCgYDVQQLDANJb1QxETAPBgNV\r\n"
ram54288 0:dbad57390bd1 27 "BAMMCEFSTSBtYmVkMB4XDTE1MDQyOTA2NTc0OFoXDTE4MDQyOTA2NTc0OFowSzEL\r\n"
ram54288 0:dbad57390bd1 28 "MAkGA1UEBhMCRkkxDTALBgNVBAcMBE91bHUxDDAKBgNVBAoMA0FSTTEMMAoGA1UE\r\n"
ram54288 0:dbad57390bd1 29 "CwwDSW9UMREwDwYDVQQDDAhBUk0gbWJlZDBZMBMGByqGSM49AgEGCCqGSM49AwEH\r\n"
ram54288 0:dbad57390bd1 30 "A0IABLuAyLSk0mA3awgFR5mw2RHth47tRUO44q/RdzFZnLsAsd18Esxd5LCpcT9w\r\n"
ram54288 0:dbad57390bd1 31 "0tvNfBv4xJxGw0wcYrPDDb8/rjujEDAOMAwGA1UdEwQFMAMBAf8wCgYIKoZIzj0E\r\n"
ram54288 0:dbad57390bd1 32 "AwIDSAAwRQIhAPAonEAkwixlJiyYRQQWpXtkMZax+VlEiS201BG0PpAzAiBh2RsD\r\n"
ram54288 0:dbad57390bd1 33 "NxLKWwf4O7D6JasGBYf9+ZLwl0iaRjTjytO+Kw==\r\n"
ram54288 0:dbad57390bd1 34 "-----END CERTIFICATE-----\r\n";
ram54288 0:dbad57390bd1 35
ram54288 0:dbad57390bd1 36 const uint8_t CERT[] = "-----BEGIN CERTIFICATE-----\r\n"
ram54288 0:dbad57390bd1 37 "MIIBzzCCAXOgAwIBAgIEPNG8WzAMBggqhkjOPQQDAgUAMDkxCzAJBgNVBAYTAkZ\r\n"
ram54288 0:dbad57390bd1 38 "JMQwwCgYDVQQKDANBUk0xHDAaBgNVBAMME21iZWQtY29ubmVjdG9yLTIwMTgwHh\r\n"
ram54288 0:dbad57390bd1 39 "cNMTcwMjE1MjAyNzA2WhcNMTgxMjMxMDYwMDAwWjCBoTFSMFAGA1UEAxNJMmE3Y\r\n"
ram54288 0:dbad57390bd1 40 "mRlOGMtNzZlYS00MmUwLWIyMDItNWQ0OGU3NmRhMDZlLzU5YmZjNjAyLTc1OTEt\r\n"
ram54288 0:dbad57390bd1 41 "NDkxNC1iOTQyLTYwMTBhMTc4NWVlMjEMMAoGA1UECxMDQVJNMRIwEAYDVQQKEwl\r\n"
ram54288 0:dbad57390bd1 42 "tYmVkIHVzZXIxDTALBgNVBAcTBE91bHUxDTALBgNVBAgTBE91bHUxCzAJBgNVBA\r\n"
ram54288 0:dbad57390bd1 43 "YTAkZJMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEV9hMW8+N0D18oRfR9eiqe\r\n"
ram54288 0:dbad57390bd1 44 "J/7S9NbxHnkjsOwbXYzSdHN/f+O2K51hD3c1HsGk7mmOqVwgvSQa2Q+dJffT4cz\r\n"
ram54288 0:dbad57390bd1 45 "7TAMBggqhkjOPQQDAgUAA0gAMEUCIG3idEgFuWNqnx1J474mpDpGMMdVMl8illM\r\n"
ram54288 0:dbad57390bd1 46 "wVztPBdcbAiEAtNAsJTLYSZiMmTd8OuCXYKb9MUv87R/wJZf/a4i4+nQ=\r\n"
ram54288 0:dbad57390bd1 47 "-----END CERTIFICATE-----\r\n";
ram54288 0:dbad57390bd1 48
ram54288 0:dbad57390bd1 49 const uint8_t KEY[] = "-----BEGIN PRIVATE KEY-----\r\n"
ram54288 0:dbad57390bd1 50 "MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgrIyISx70k9vVg1tT\r\n"
ram54288 0:dbad57390bd1 51 "mxB6qBQTLOTnTXlFO7a/WCAvzLyhRANCAARX2Exbz43QPXyhF9H16Kp4n/tL01vE\r\n"
ram54288 0:dbad57390bd1 52 "eeSOw7BtdjNJ0c39/47YrnWEPdzUewaTuaY6pXCC9JBrZD50l99PhzPt\r\n"
ram54288 0:dbad57390bd1 53 "-----END PRIVATE KEY-----\r\n";
ram54288 0:dbad57390bd1 54
ram54288 0:dbad57390bd1 55 #endif //__SECURITY_H__