BG96 Cat.M1 AWS IoT client sample for WIZnet IoT Shield, using built-in SSL/TLS stack

Committer:
hkjung
Date:
Wed Mar 27 13:00:24 2019 +0000
Revision:
5:2ccc5a5282bc
Parent:
3:ab078dbeb0cc
Some changes

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hkjung 3:ab078dbeb0cc 1
hkjung 3:ab078dbeb0cc 2 /*
hkjung 3:ab078dbeb0cc 3 * AWS sample certificates
hkjung 3:ab078dbeb0cc 4 *
hkjung 3:ab078dbeb0cc 5 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
hkjung 3:ab078dbeb0cc 6 * SPDX-License-Identifier: Apache-2.0
hkjung 3:ab078dbeb0cc 7 *
hkjung 3:ab078dbeb0cc 8 * Licensed under the Apache License, Version 2.0 (the "License"); you may
hkjung 3:ab078dbeb0cc 9 * not use this file except in compliance with the License.
hkjung 3:ab078dbeb0cc 10 * You may obtain a copy of the License at
hkjung 3:ab078dbeb0cc 11 *
hkjung 3:ab078dbeb0cc 12 * http://www.apache.org/licenses/LICENSE-2.0
hkjung 3:ab078dbeb0cc 13 *
hkjung 3:ab078dbeb0cc 14 * Unless required by applicable law or agreed to in writing, software
hkjung 3:ab078dbeb0cc 15 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
hkjung 3:ab078dbeb0cc 16 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
hkjung 3:ab078dbeb0cc 17 * See the License for the specific language governing permissions and
hkjung 3:ab078dbeb0cc 18 * limitations under the License.
hkjung 3:ab078dbeb0cc 19 *
hkjung 3:ab078dbeb0cc 20 */
hkjung 3:ab078dbeb0cc 21
hkjung 3:ab078dbeb0cc 22 const char aws_iot_certificate[] = \
hkjung 3:ab078dbeb0cc 23 "-----BEGIN CERTIFICATE-----\n"
hkjung 3:ab078dbeb0cc 24 "MIIDWTCCAkGgAwIBAgIUIW0yog+2PbY6m8dSCHFMbGDAV0cwDQYJKoZIhvcNAQEL\n"
hkjung 3:ab078dbeb0cc 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n"
hkjung 3:ab078dbeb0cc 37 "L9v2tb/Rv04POPXsjwMLHs7UXqb9BWMohE57IEv/vIv3qHtFljSRbDZtjOVL9PZv\n"
hkjung 3:ab078dbeb0cc 38 "sy0pxiS0Xl8JbBQha+NGes8S58+OLzz/8o/8OU1g2y21Gys5akWW3PNS0EtH8DNx\n"
hkjung 3:ab078dbeb0cc 39 "r3iy1Q8zmteH/yLsVrj/j/7k8clIO20yLvsKjhODFDGoMdAVMIXPA92ZPSxCLeGV\n"
hkjung 3:ab078dbeb0cc 40 "6GG2qpOM06uEvxYyvmOg7+sLBx+3r4hvlEOmI7RAQfBquudfYN+jBGIPk4Ti\n"
hkjung 3:ab078dbeb0cc 41 "-----END CERTIFICATE-----\n";
hkjung 3:ab078dbeb0cc 42
hkjung 3:ab078dbeb0cc 43 const char aws_iot_private_key[] = \
hkjung 3:ab078dbeb0cc 44 "-----BEGIN RSA PRIVATE KEY-----\n"
hkjung 3:ab078dbeb0cc 45 "MIIEogIBAAKCAQEAv35YqgykEtF3VtMfaaug3f1qacwGyda00/P8Ff35LLto3Ylq\n"
hkjung 3:ab078dbeb0cc 46 "gE2dLCf039/Wpdxpgw/ONX27p7Z5EIb5gPFcMTb+vibZAFlLR+Due8RSGCJxUqV9\n"
hkjung 3:ab078dbeb0cc 47 "jAfEvgEnUwdbJD6Sj77itsSkPfKp/p9lqBL0lNhl5vlTPKDxzxsrlOEB2MpFXcz6\n"
hkjung 3:ab078dbeb0cc 48 "GSbUYXD7pT453Ezm/NFUCfDDRWas3Qn1w1Yu90uuFrkNQ6mc34kwpT664asKiDu6\n"
hkjung 3:ab078dbeb0cc 49 "ZmrEEfFLBxjsDy47suXsh7PNHBe5NBY5TSlFAAJgs8iJ4Y61VilJdgQL5Tuul1io\n"
hkjung 3:ab078dbeb0cc 50 "cqo3W0daQjhJNlZjz804NdMdN33uL9qSEWHYuwIDAQABAoIBAAzwMHVs3TkYRgPr\n"
hkjung 3:ab078dbeb0cc 51 "x9eP7RKSq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cc 63 "42NXS19/69Q9Me21POYkyQKBgAnlfTX4CUmhEkU+GuaNBuLugC4fPmae6cceQWUu\n"
hkjung 3:ab078dbeb0cc 64 "GQCwRTEbBRor/RR9ANzoWwXamNLo6i//HCDB5rwFYIuSdETK574aHomElH2PVOu1\n"
hkjung 3:ab078dbeb0cc 65 "4eAjmgNlUKGxN1dEJZZ5UtH3HLi1J23W8lu9wnJkOU0hZSP5t0MaTOKq5b7SB3ip\n"
hkjung 3:ab078dbeb0cc 66 "VauxAoGAGIsMYvIO+fpXDlFAmFSImGYUnpdfwYLqtX4UUbAJiENIahnlLNRFI6YH\n"
hkjung 3:ab078dbeb0cc 67 "voATIW1pazNHAvhEKDDCqP+dC3qljCp1TlIhJx+TZjLxhXx+/g7PkY9yxgUmT0fV\n"
hkjung 3:ab078dbeb0cc 68 "s8Zl3BdsIB20cQYqela4cNHu2DKYwg+rG44grOOrikMrunLWPBU=\n"
hkjung 3:ab078dbeb0cc 69 "-----END RSA PRIVATE KEY-----\n";
hkjung 3:ab078dbeb0cc 70
hkjung 3:ab078dbeb0cc 71 const char aws_iot_rootCA[] = \
hkjung 3:ab078dbeb0cc 72 "-----BEGIN CERTIFICATE-----\n"
hkjung 3:ab078dbeb0cc 73 "MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsF\n"
hkjung 3:ab078dbeb0cc 74 "ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6\n"
hkjung 3:ab078dbeb0cc 75 "b24gUm9vdCBDQSAxMB4XDTE1MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTEL\n"
hkjung 3:ab078dbeb0cc 76 "MAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJv\n"
hkjung 3:ab078dbeb0cc 77 "b3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCA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078dbeb0cc 90 "-----END CERTIFICATE-----\n";
hkjung 3:ab078dbeb0cc 91