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.
Diff: security.h
- Revision:
- 0:06ee5f8a484a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/security.h Sat Mar 18 22:37:16 2017 +0000 @@ -0,0 +1,55 @@ +/* + * 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 "b2e46834-1933-468f-808a-0200872c1105" +#define MBED_ENDPOINT_NAME "8e59aae3-d47d-4822-90b9-4d61134217a3" + +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" +"MIIB0DCCAXOgAwIBAgIEHqLAATAMBggqhkjOPQQDAgUAMDkxCzAJBgNVBAYTAkZ\r\n" +"JMQwwCgYDVQQKDANBUk0xHDAaBgNVBAMME21iZWQtY29ubmVjdG9yLTIwMTgwHh\r\n" +"cNMTcwMjIzMTgxODAwWhcNMTgxMjMxMDYwMDAwWjCBoTFSMFAGA1UEAxNJYjJlN\r\n" +"DY4MzQtMTkzMy00NjhmLTgwOGEtMDIwMDg3MmMxMTA1LzhlNTlhYWUzLWQ0N2Qt\r\n" +"NDgyMi05MGI5LTRkNjExMzQyMTdhMzEMMAoGA1UECxMDQVJNMRIwEAYDVQQKEwl\r\n" +"tYmVkIHVzZXIxDTALBgNVBAcTBE91bHUxDTALBgNVBAgTBE91bHUxCzAJBgNVBA\r\n" +"YTAkZJMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAExvk+/KH21dZb83JbS/wQP\r\n" +"nDCH3O7QeWdv7Vs8tTOXG69ZK/+bDhKiPVqUrEcBwe1TcA9W09QdtxQhYgmiVTh\r\n" +"PTAMBggqhkjOPQQDAgUAA0kAMEYCIQCo9lMozjg7ByR2OkQu+ssju6NCd8C0EJ8\r\n" +"vu8gC9tcc5wIhAO8eqJmfk6h1rWYYcBYdEDuuV+24EFD0ddwUou/jxH9e\r\n" +"-----END CERTIFICATE-----\r\n"; + +const uint8_t KEY[] = "-----BEGIN PRIVATE KEY-----\r\n" +"MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgKNMQWIhfPTYiUio8\r\n" +"SretaWp9QZaATsQPcgaTCY9hjP+hRANCAATG+T78ofbV1lvzcltL/BA+cMIfc7tB\r\n" +"5Z2/tWzy1M5cbr1kr/5sOEqI9WpSsRwHB7VNwD1bT1B23FCFiCaJVOE9\r\n" +"-----END PRIVATE KEY-----\r\n"; + +#endif //__SECURITY_H__