/* * Amazon FreeRTOS V1.4.1 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://aws.amazon.com/freertos * http://www.FreeRTOS.org */ #ifndef AWS_CLIENT_CREDENTIAL_KEYS_H #define AWS_CLIENT_CREDENTIAL_KEYS_H #include /* * PEM-encoded client certificate * * Must include the PEM header and footer: * "-----BEGIN CERTIFICATE-----\n"\ * "...base64 data...\n"\ * "-----END CERTIFICATE-----\n" */ #define keyCLIENT_CERTIFICATE_PEM \ /* * PEM-encoded issuer certificate for AWS IoT Just In Time Registration (JITR). * This is required if you're using JITR, since the issuer (Certificate * Authority) of the client certificate is used by the server for routing the * device's initial request. (The device client certificate must always be * sent as well.) For more information about JITR, see: * https://docs.aws.amazon.com/iot/latest/developerguide/jit-provisioning.html, * https://aws.amazon.com/blogs/iot/just-in-time-registration-of-device-certificates-on-aws-iot/. * * If you're not using JITR, set below to NULL. * * Must include the PEM header and footer: * "-----BEGIN CERTIFICATE-----\n"\ * "...base64 data...\n"\ * "-----END CERTIFICATE-----\n" */ #define keyJITR_DEVICE_CERTIFICATE_AUTHORITY_PEM NULL /* * PEM-encoded client private key. * * Must include the PEM header and footer: * "-----BEGIN RSA PRIVATE KEY-----\n"\ * "...base64 data...\n"\ * "-----END RSA PRIVATE KEY-----\n" */ #define keyCLIENT_PRIVATE_KEY_PEM \ /* The constants above are set to const char * pointers defined in aws_demo_runner.c, * and externed here for use in C files. NOTE! THIS IS DONE FOR CONVENIENCE * DURING AN EVALUATION PHASE AND IS NOT GOOD PRACTICE FOR PRODUCTION SYSTEMS * WHICH MUST STORE KEYS SECURELY. */ extern const char clientcredentialCLIENT_CERTIFICATE_PEM[]; extern const char* clientcredentialJITR_DEVICE_CERTIFICATE_AUTHORITY_PEM; extern const char clientcredentialCLIENT_PRIVATE_KEY_PEM[]; extern const uint32_t clientcredentialCLIENT_CERTIFICATE_LENGTH; extern const uint32_t clientcredentialCLIENT_PRIVATE_KEY_LENGTH; #endif /* AWS_CLIENT_CREDENTIAL_KEYS_H */