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@0:06ee5f8a484a, 2017-03-18 (annotated)
- Committer:
- djmeyers
- Date:
- Sat Mar 18 22:37:16 2017 +0000
- Revision:
- 0:06ee5f8a484a
Initial commit
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| djmeyers | 0:06ee5f8a484a | 1 | /* |
| djmeyers | 0:06ee5f8a484a | 2 | * Copyright (c) 2015 ARM Limited. All rights reserved. |
| djmeyers | 0:06ee5f8a484a | 3 | * SPDX-License-Identifier: Apache-2.0 |
| djmeyers | 0:06ee5f8a484a | 4 | * Licensed under the Apache License, Version 2.0 (the License); you may |
| djmeyers | 0:06ee5f8a484a | 5 | * not use this file except in compliance with the License. |
| djmeyers | 0:06ee5f8a484a | 6 | * You may obtain a copy of the License at |
| djmeyers | 0:06ee5f8a484a | 7 | * |
| djmeyers | 0:06ee5f8a484a | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| djmeyers | 0:06ee5f8a484a | 9 | * |
| djmeyers | 0:06ee5f8a484a | 10 | * Unless required by applicable law or agreed to in writing, software |
| djmeyers | 0:06ee5f8a484a | 11 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT |
| djmeyers | 0:06ee5f8a484a | 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| djmeyers | 0:06ee5f8a484a | 13 | * See the License for the specific language governing permissions and |
| djmeyers | 0:06ee5f8a484a | 14 | * limitations under the License. |
| djmeyers | 0:06ee5f8a484a | 15 | */ |
| djmeyers | 0:06ee5f8a484a | 16 | #ifndef __SECURITY_H__ |
| djmeyers | 0:06ee5f8a484a | 17 | #define __SECURITY_H__ |
| djmeyers | 0:06ee5f8a484a | 18 | |
| djmeyers | 0:06ee5f8a484a | 19 | #include <inttypes.h> |
| djmeyers | 0:06ee5f8a484a | 20 | |
| djmeyers | 0:06ee5f8a484a | 21 | #define MBED_DOMAIN "b2e46834-1933-468f-808a-0200872c1105" |
| djmeyers | 0:06ee5f8a484a | 22 | #define MBED_ENDPOINT_NAME "8e59aae3-d47d-4822-90b9-4d61134217a3" |
| djmeyers | 0:06ee5f8a484a | 23 | |
| djmeyers | 0:06ee5f8a484a | 24 | const uint8_t SERVER_CERT[] = "-----BEGIN CERTIFICATE-----\r\n" |
| djmeyers | 0:06ee5f8a484a | 25 | "MIIBmDCCAT6gAwIBAgIEVUCA0jAKBggqhkjOPQQDAjBLMQswCQYDVQQGEwJGSTEN\r\n" |
| djmeyers | 0:06ee5f8a484a | 26 | "MAsGA1UEBwwET3VsdTEMMAoGA1UECgwDQVJNMQwwCgYDVQQLDANJb1QxETAPBgNV\r\n" |
| djmeyers | 0:06ee5f8a484a | 27 | "BAMMCEFSTSBtYmVkMB4XDTE1MDQyOTA2NTc0OFoXDTE4MDQyOTA2NTc0OFowSzEL\r\n" |
| djmeyers | 0:06ee5f8a484a | 28 | "MAkGA1UEBhMCRkkxDTALBgNVBAcMBE91bHUxDDAKBgNVBAoMA0FSTTEMMAoGA1UE\r\n" |
| djmeyers | 0:06ee5f8a484a | 29 | "CwwDSW9UMREwDwYDVQQDDAhBUk0gbWJlZDBZMBMGByqGSM49AgEGCCqGSM49AwEH\r\n" |
| djmeyers | 0:06ee5f8a484a | 30 | "A0IABLuAyLSk0mA3awgFR5mw2RHth47tRUO44q/RdzFZnLsAsd18Esxd5LCpcT9w\r\n" |
| djmeyers | 0:06ee5f8a484a | 31 | "0tvNfBv4xJxGw0wcYrPDDb8/rjujEDAOMAwGA1UdEwQFMAMBAf8wCgYIKoZIzj0E\r\n" |
| djmeyers | 0:06ee5f8a484a | 32 | "AwIDSAAwRQIhAPAonEAkwixlJiyYRQQWpXtkMZax+VlEiS201BG0PpAzAiBh2RsD\r\n" |
| djmeyers | 0:06ee5f8a484a | 33 | "NxLKWwf4O7D6JasGBYf9+ZLwl0iaRjTjytO+Kw==\r\n" |
| djmeyers | 0:06ee5f8a484a | 34 | "-----END CERTIFICATE-----\r\n"; |
| djmeyers | 0:06ee5f8a484a | 35 | |
| djmeyers | 0:06ee5f8a484a | 36 | const uint8_t CERT[] = "-----BEGIN CERTIFICATE-----\r\n" |
| djmeyers | 0:06ee5f8a484a | 37 | "MIIB0DCCAXOgAwIBAgIEHqLAATAMBggqhkjOPQQDAgUAMDkxCzAJBgNVBAYTAkZ\r\n" |
| djmeyers | 0:06ee5f8a484a | 38 | "JMQwwCgYDVQQKDANBUk0xHDAaBgNVBAMME21iZWQtY29ubmVjdG9yLTIwMTgwHh\r\n" |
| djmeyers | 0:06ee5f8a484a | 39 | "cNMTcwMjIzMTgxODAwWhcNMTgxMjMxMDYwMDAwWjCBoTFSMFAGA1UEAxNJYjJlN\r\n" |
| djmeyers | 0:06ee5f8a484a | 40 | "DY4MzQtMTkzMy00NjhmLTgwOGEtMDIwMDg3MmMxMTA1LzhlNTlhYWUzLWQ0N2Qt\r\n" |
| djmeyers | 0:06ee5f8a484a | 41 | "NDgyMi05MGI5LTRkNjExMzQyMTdhMzEMMAoGA1UECxMDQVJNMRIwEAYDVQQKEwl\r\n" |
| djmeyers | 0:06ee5f8a484a | 42 | "tYmVkIHVzZXIxDTALBgNVBAcTBE91bHUxDTALBgNVBAgTBE91bHUxCzAJBgNVBA\r\n" |
| djmeyers | 0:06ee5f8a484a | 43 | "YTAkZJMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAExvk+/KH21dZb83JbS/wQP\r\n" |
| djmeyers | 0:06ee5f8a484a | 44 | "nDCH3O7QeWdv7Vs8tTOXG69ZK/+bDhKiPVqUrEcBwe1TcA9W09QdtxQhYgmiVTh\r\n" |
| djmeyers | 0:06ee5f8a484a | 45 | "PTAMBggqhkjOPQQDAgUAA0kAMEYCIQCo9lMozjg7ByR2OkQu+ssju6NCd8C0EJ8\r\n" |
| djmeyers | 0:06ee5f8a484a | 46 | "vu8gC9tcc5wIhAO8eqJmfk6h1rWYYcBYdEDuuV+24EFD0ddwUou/jxH9e\r\n" |
| djmeyers | 0:06ee5f8a484a | 47 | "-----END CERTIFICATE-----\r\n"; |
| djmeyers | 0:06ee5f8a484a | 48 | |
| djmeyers | 0:06ee5f8a484a | 49 | const uint8_t KEY[] = "-----BEGIN PRIVATE KEY-----\r\n" |
| djmeyers | 0:06ee5f8a484a | 50 | "MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgKNMQWIhfPTYiUio8\r\n" |
| djmeyers | 0:06ee5f8a484a | 51 | "SretaWp9QZaATsQPcgaTCY9hjP+hRANCAATG+T78ofbV1lvzcltL/BA+cMIfc7tB\r\n" |
| djmeyers | 0:06ee5f8a484a | 52 | "5Z2/tWzy1M5cbr1kr/5sOEqI9WpSsRwHB7VNwD1bT1B23FCFiCaJVOE9\r\n" |
| djmeyers | 0:06ee5f8a484a | 53 | "-----END PRIVATE KEY-----\r\n"; |
| djmeyers | 0:06ee5f8a484a | 54 | |
| djmeyers | 0:06ee5f8a484a | 55 | #endif //__SECURITY_H__ |