Example program for simple-mbed-client, connecting a device to mbed Device Connector.
Dependencies: BM1383AGLV simple-mbed-client RegisterWriter kionix-kx123-driver
Fork of simple-client-app-shield by
Diff: security.h
- Revision:
- 18:9aadd6ce6f87
- Parent:
- 14:ddc258abaaac
--- a/security.h Thu Jun 30 12:33:00 2016 +0200 +++ b/security.h Thu Jun 30 12:36:07 2016 +0200 @@ -1,55 +1,35 @@ -/* - * 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 "fc5bae18-72d8-4d16-a0d0-00608fa76464" -#define MBED_ENDPOINT_NAME "1f277937-4e63-4076-92af-7eb1f49e88f2" - -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" -"MIIBzzCCAXOgAwIBAgIEWFVkWTAMBggqhkjOPQQDAgUAMDkxCzAJBgNVBAYTAkZ\r\n" -"JMQwwCgYDVQQKDANBUk0xHDAaBgNVBAMME21iZWQtY29ubmVjdG9yLTIwMTYwHh\r\n" -"cNMTYwNTE2MjI0ODQ2WhcNMTYxMjMxMDYwMDAwWjCBoTFSMFAGA1UEAxNJZmM1Y\r\n" -"mFlMTgtNzJkOC00ZDE2LWEwZDAtMDA2MDhmYTc2NDY0LzFmMjc3OTM3LTRlNjMt\r\n" -"NDA3Ni05MmFmLTdlYjFmNDllODhmMjEMMAoGA1UECxMDQVJNMRIwEAYDVQQKEwl\r\n" -"tYmVkIHVzZXIxDTALBgNVBAcTBE91bHUxDTALBgNVBAgTBE91bHUxCzAJBgNVBA\r\n" -"YTAkZJMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEqr0Uwojt8S8GhbkP/V1V7\r\n" -"60IJyscM9SC+B3TpYPIcolIwmp9IstxIJfNN5nbO3vS9lEfaut2AU6UvvBLUy6a\r\n" -"ADAMBggqhkjOPQQDAgUAA0gAMEUCIQC1RDl26vi2uMJjpoism0MRVLALW37Rs5O\r\n" -"pJCh4Wt4EOgIgKUUwryF9Pu4ve8MlydBnUnd9o2UQFe9P+i0/KFPZgHg=\r\n" -"-----END CERTIFICATE-----\r\n"; - -const uint8_t KEY[] = "-----BEGIN PRIVATE KEY-----\r\n" -"MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgZr8pU60dkrbILqd9\r\n" -"dBy/Ov0f/0sBmVKZoCDrUhqv2CehRANCAASqvRTCiO3xLwaFuQ/9XVXvrQgnKxwz\r\n" -"1IL4HdOlg8hyiUjCan0iy3Egl803mds7e9L2UR9q63YBTpS+8EtTLpoA\r\n" -"-----END PRIVATE KEY-----\r\n"; - -#endif //__SECURITY_H__ +/* + * 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 "DOMAIN" +#define MBED_ENDPOINT_NAME "ENDPOINT_NAME" + +const uint8_t SERVER_CERT[] = "-----BEGIN CERTIFICATE-----\r\n" +"-----END CERTIFICATE-----\r\n"; + +const uint8_t CERT[] = "-----BEGIN CERTIFICATE-----\r\n" +"-----END CERTIFICATE-----\r\n"; + +const uint8_t KEY[] = "-----BEGIN PRIVATE KEY-----\r\n" +"-----END PRIVATE KEY-----\r\n"; + +#endif //__SECURITY_H__ + +#error "You need to get security.h credentials from http://connector.mbed.com and replace the content of this security.h file."