Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
security.h
00001 00002 00003 /* 00004 00005 * Copyright (c) 2015 ARM Limited. All rights reserved. 00006 00007 * SPDX-License-Identifier: Apache-2.0 00008 00009 * Licensed under the Apache License, Version 2.0 (the License); you may 00010 00011 * not use this file except in compliance with the License. 00012 00013 * You may obtain a copy of the License at 00014 00015 * 00016 00017 * http://www.apache.org/licenses/LICENSE-2.0 00018 00019 * 00020 00021 * Unless required by applicable law or agreed to in writing, software 00022 00023 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 00024 00025 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00026 00027 * See the License for the specific language governing permissions and 00028 00029 * limitations under the License. 00030 00031 */ 00032 00033 #ifndef __SECURITY_H__ 00034 00035 #define __SECURITY_H__ 00036 00037 00038 00039 #include <inttypes.h> 00040 00041 00042 00043 #define MBED_DOMAIN "eeforester" 00044 00045 #define MBED_ENDPOINT_NAME "a3e4593c-4e03-492a-9e32-320550fe442e" 00046 00047 00048 00049 const unsigned char PSK[] = {0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x31,0x32,0x33,0x34,0x35,0x36}; 00050 00051 const unsigned char PSK_IDENTITY[] = {0x0F,0x0F}; 00052 00053 00054 00055 const uint8_t SERVER_CERT[] = "-----BEGIN CERTIFICATE-----\r\n" 00056 00057 "MIIBmDCCAT6gAwIBAgIEVUCA0jAKBggqhkjOPQQDAjBLMQswCQYDVQQGEwJGSTEN\r\n" 00058 00059 "MAsGA1UEBwwET3VsdTEMMAoGA1UECgwDQVJNMQwwCgYDVQQLDANJb1QxETAPBgNV\r\n" 00060 00061 "BAMMCEFSTSBtYmVkMB4XDTE1MDQyOTA2NTc0OFoXDTE4MDQyOTA2NTc0OFowSzEL\r\n" 00062 00063 "MAkGA1UEBhMCRkkxDTALBgNVBAcMBE91bHUxDDAKBgNVBAoMA0FSTTEMMAoGA1UE\r\n" 00064 00065 "CwwDSW9UMREwDwYDVQQDDAhBUk0gbWJlZDBZMBMGByqGSM49AgEGCCqGSM49AwEH\r\n" 00066 00067 "A0IABLuAyLSk0mA3awgFR5mw2RHth47tRUO44q/RdzFZnLsAsd18Esxd5LCpcT9w\r\n" 00068 00069 "0tvNfBv4xJxGw0wcYrPDDb8/rjujEDAOMAwGA1UdEwQFMAMBAf8wCgYIKoZIzj0E\r\n" 00070 00071 "AwIDSAAwRQIhAPAonEAkwixlJiyYRQQWpXtkMZax+VlEiS201BG0PpAzAiBh2RsD\r\n" 00072 00073 "NxLKWwf4O7D6JasGBYf9+ZLwl0iaRjTjytO+Kw==\r\n" 00074 00075 "-----END CERTIFICATE-----\r\n"; 00076 00077 00078 00079 const uint8_t CERT[] = "-----BEGIN CERTIFICATE-----\r\n" 00080 00081 "MIIBjDCCATCgAwIBAgIEFGtTOzAMBggqhkjOPQQDAgUAMBAxDjAMBgNVBAMTBW5z\r\n" 00082 00083 "cDAxMB4XDTE1MDkwMjE0MjE0MVoXDTE2MDkwMTE0MjE0MVowgYcxODA2BgNVBAMT\r\n" 00084 00085 "L2EzZTQ1OTNjLTRlMDMtNDkyYS05ZTMyLTMyMDU1MGZlNDQyZS9lZWZvcmVzdGVy\r\n" 00086 00087 "MQwwCgYDVQQLEwNBUk0xEjAQBgNVBAoTCW1iZWQgdXNlcjENMAsGA1UEBxMET3Vs\r\n" 00088 00089 "dTENMAsGA1UECBMET3VsdTELMAkGA1UEBhMCRkkwWTATBgcqhkjOPQIBBggqhkjO\r\n" 00090 00091 "PQMBBwNCAAQuxHp1a1V8pCVziDMhuuSt5zbrduEe+0y+UXuPMj2k6uoEuVCYI4+k\r\n" 00092 00093 "JU6WSfVYAFSVVka0JhIMKB289xU2G5+EMAwGCCqGSM49BAMCBQADSAAwRQIgeWQK\r\n" 00094 00095 "su17hcY+fQxY8H8BgrGy0z+RKJr51WZl2LR9ZSwCIQDKPx9LYzwSw8y1hugpcsc/\r\n" 00096 00097 "ul5++FNrYwLE44l3pW87yw==\r\n" 00098 00099 "-----END CERTIFICATE-----\r\n"; 00100 00101 00102 00103 const uint8_t KEY[] = "-----BEGIN PRIVATE KEY-----\r\n" 00104 00105 "MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQg9RFcAVbOKG1LbIF8\r\n" 00106 00107 "kNqA8dznz4wnD+B/ghYNQMHtL/qhRANCAAQuxHp1a1V8pCVziDMhuuSt5zbrduEe\r\n" 00108 00109 "+0y+UXuPMj2k6uoEuVCYI4+kJU6WSfVYAFSVVka0JhIMKB289xU2G5+E\r\n" 00110 00111 "-----END PRIVATE KEY-----\r\n"; 00112 00113 00114 00115 #endif //__SECURITY_H__
Generated on Tue Jul 12 2022 21:20:29 by
1.7.2