This is a fork due to permission issues
Dependencies: mbed Socket lwip-eth lwip-sys lwip
Fork of 6_songs-from-the-cloud by
mbed-client/mbedtls/source/certs.c@1:0ddbe2d3319c, 2016-05-19 (annotated)
- Committer:
- timbeight
- Date:
- Thu May 19 16:02:10 2016 +0000
- Revision:
- 1:0ddbe2d3319c
- Parent:
- 0:f7c60d3e7b8a
This is my first commit while in the class.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
maclobdell | 0:f7c60d3e7b8a | 1 | /* |
maclobdell | 0:f7c60d3e7b8a | 2 | * X.509 test certificates |
maclobdell | 0:f7c60d3e7b8a | 3 | * |
maclobdell | 0:f7c60d3e7b8a | 4 | * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved |
maclobdell | 0:f7c60d3e7b8a | 5 | * SPDX-License-Identifier: Apache-2.0 |
maclobdell | 0:f7c60d3e7b8a | 6 | * |
maclobdell | 0:f7c60d3e7b8a | 7 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
maclobdell | 0:f7c60d3e7b8a | 8 | * not use this file except in compliance with the License. |
maclobdell | 0:f7c60d3e7b8a | 9 | * You may obtain a copy of the License at |
maclobdell | 0:f7c60d3e7b8a | 10 | * |
maclobdell | 0:f7c60d3e7b8a | 11 | * http://www.apache.org/licenses/LICENSE-2.0 |
maclobdell | 0:f7c60d3e7b8a | 12 | * |
maclobdell | 0:f7c60d3e7b8a | 13 | * Unless required by applicable law or agreed to in writing, software |
maclobdell | 0:f7c60d3e7b8a | 14 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
maclobdell | 0:f7c60d3e7b8a | 15 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
maclobdell | 0:f7c60d3e7b8a | 16 | * See the License for the specific language governing permissions and |
maclobdell | 0:f7c60d3e7b8a | 17 | * limitations under the License. |
maclobdell | 0:f7c60d3e7b8a | 18 | * |
maclobdell | 0:f7c60d3e7b8a | 19 | * This file is part of mbed TLS (https://tls.mbed.org) |
maclobdell | 0:f7c60d3e7b8a | 20 | */ |
maclobdell | 0:f7c60d3e7b8a | 21 | |
maclobdell | 0:f7c60d3e7b8a | 22 | #if !defined(MBEDTLS_CONFIG_FILE) |
maclobdell | 0:f7c60d3e7b8a | 23 | #include "mbedtls/config.h" |
maclobdell | 0:f7c60d3e7b8a | 24 | #else |
maclobdell | 0:f7c60d3e7b8a | 25 | #include MBEDTLS_CONFIG_FILE |
maclobdell | 0:f7c60d3e7b8a | 26 | #endif |
maclobdell | 0:f7c60d3e7b8a | 27 | |
maclobdell | 0:f7c60d3e7b8a | 28 | #include "mbedtls/certs.h" |
maclobdell | 0:f7c60d3e7b8a | 29 | |
maclobdell | 0:f7c60d3e7b8a | 30 | #if defined(MBEDTLS_CERTS_C) |
maclobdell | 0:f7c60d3e7b8a | 31 | |
maclobdell | 0:f7c60d3e7b8a | 32 | #if defined(MBEDTLS_ECDSA_C) |
maclobdell | 0:f7c60d3e7b8a | 33 | #define TEST_CA_CRT_EC \ |
maclobdell | 0:f7c60d3e7b8a | 34 | "-----BEGIN CERTIFICATE-----\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 35 | "MIICUjCCAdegAwIBAgIJAMFD4n5iQ8zoMAoGCCqGSM49BAMCMD4xCzAJBgNVBAYT\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 36 | "Ak5MMREwDwYDVQQKEwhQb2xhclNTTDEcMBoGA1UEAxMTUG9sYXJzc2wgVGVzdCBF\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 37 | "QyBDQTAeFw0xMzA5MjQxNTQ5NDhaFw0yMzA5MjIxNTQ5NDhaMD4xCzAJBgNVBAYT\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 38 | "Ak5MMREwDwYDVQQKEwhQb2xhclNTTDEcMBoGA1UEAxMTUG9sYXJzc2wgVGVzdCBF\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 39 | "QyBDQTB2MBAGByqGSM49AgEGBSuBBAAiA2IABMPaKzRBN1gvh1b+/Im6KUNLTuBu\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 40 | "ww5XUzM5WNRStJGVOQsj318XJGJI/BqVKc4sLYfCiFKAr9ZqqyHduNMcbli4yuiy\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 41 | "aY7zQa0pw7RfdadHb9UZKVVpmlM7ILRmFmAzHqOBoDCBnTAdBgNVHQ4EFgQUnW0g\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 42 | "JEkBPyvLeLUZvH4kydv7NnwwbgYDVR0jBGcwZYAUnW0gJEkBPyvLeLUZvH4kydv7\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 43 | "NnyhQqRAMD4xCzAJBgNVBAYTAk5MMREwDwYDVQQKEwhQb2xhclNTTDEcMBoGA1UE\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 44 | "AxMTUG9sYXJzc2wgVGVzdCBFQyBDQYIJAMFD4n5iQ8zoMAwGA1UdEwQFMAMBAf8w\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 45 | "CgYIKoZIzj0EAwIDaQAwZgIxAMO0YnNWKJUAfXgSJtJxexn4ipg+kv4znuR50v56\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 46 | "t4d0PCu412mUC6Nnd7izvtE2MgIxAP1nnJQjZ8BWukszFQDG48wxCCyci9qpdSMv\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 47 | "uCjn8pwUOkABXK8Mss90fzCfCEOtIA==\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 48 | "-----END CERTIFICATE-----\r\n" |
maclobdell | 0:f7c60d3e7b8a | 49 | const char mbedtls_test_ca_crt_ec[] = TEST_CA_CRT_EC; |
maclobdell | 0:f7c60d3e7b8a | 50 | |
maclobdell | 0:f7c60d3e7b8a | 51 | const char mbedtls_test_ca_key_ec[] = |
maclobdell | 0:f7c60d3e7b8a | 52 | "-----BEGIN EC PRIVATE KEY-----\r\n" |
maclobdell | 0:f7c60d3e7b8a | 53 | "Proc-Type: 4,ENCRYPTED\r\n" |
maclobdell | 0:f7c60d3e7b8a | 54 | "DEK-Info: DES-EDE3-CBC,307EAB469933D64E\r\n" |
maclobdell | 0:f7c60d3e7b8a | 55 | "\r\n" |
maclobdell | 0:f7c60d3e7b8a | 56 | "IxbrRmKcAzctJqPdTQLA4SWyBYYGYJVkYEna+F7Pa5t5Yg/gKADrFKcm6B72e7DG\r\n" |
maclobdell | 0:f7c60d3e7b8a | 57 | "ihExtZI648s0zdYw6qSJ74vrPSuWDe5qm93BqsfVH9svtCzWHW0pm1p0KTBCFfUq\r\n" |
maclobdell | 0:f7c60d3e7b8a | 58 | "UsuWTITwJImcnlAs1gaRZ3sAWm7cOUidL0fo2G0fYUFNcYoCSLffCFTEHBuPnagb\r\n" |
maclobdell | 0:f7c60d3e7b8a | 59 | "a77x/sY1Bvii8S9/XhDTb6pTMx06wzrm\r\n" |
maclobdell | 0:f7c60d3e7b8a | 60 | "-----END EC PRIVATE KEY-----\r\n"; |
maclobdell | 0:f7c60d3e7b8a | 61 | |
maclobdell | 0:f7c60d3e7b8a | 62 | const char mbedtls_test_ca_pwd_ec[] = "PolarSSLTest"; |
maclobdell | 0:f7c60d3e7b8a | 63 | |
maclobdell | 0:f7c60d3e7b8a | 64 | const char mbedtls_test_srv_crt_ec[] = |
maclobdell | 0:f7c60d3e7b8a | 65 | "-----BEGIN CERTIFICATE-----\r\n" |
maclobdell | 0:f7c60d3e7b8a | 66 | "MIICHzCCAaWgAwIBAgIBCTAKBggqhkjOPQQDAjA+MQswCQYDVQQGEwJOTDERMA8G\r\n" |
maclobdell | 0:f7c60d3e7b8a | 67 | "A1UEChMIUG9sYXJTU0wxHDAaBgNVBAMTE1BvbGFyc3NsIFRlc3QgRUMgQ0EwHhcN\r\n" |
maclobdell | 0:f7c60d3e7b8a | 68 | "MTMwOTI0MTU1MjA0WhcNMjMwOTIyMTU1MjA0WjA0MQswCQYDVQQGEwJOTDERMA8G\r\n" |
maclobdell | 0:f7c60d3e7b8a | 69 | "A1UEChMIUG9sYXJTU0wxEjAQBgNVBAMTCWxvY2FsaG9zdDBZMBMGByqGSM49AgEG\r\n" |
maclobdell | 0:f7c60d3e7b8a | 70 | "CCqGSM49AwEHA0IABDfMVtl2CR5acj7HWS3/IG7ufPkGkXTQrRS192giWWKSTuUA\r\n" |
maclobdell | 0:f7c60d3e7b8a | 71 | "2CMR/+ov0jRdXRa9iojCa3cNVc2KKg76Aci07f+jgZ0wgZowCQYDVR0TBAIwADAd\r\n" |
maclobdell | 0:f7c60d3e7b8a | 72 | "BgNVHQ4EFgQUUGGlj9QH2deCAQzlZX+MY0anE74wbgYDVR0jBGcwZYAUnW0gJEkB\r\n" |
maclobdell | 0:f7c60d3e7b8a | 73 | "PyvLeLUZvH4kydv7NnyhQqRAMD4xCzAJBgNVBAYTAk5MMREwDwYDVQQKEwhQb2xh\r\n" |
maclobdell | 0:f7c60d3e7b8a | 74 | "clNTTDEcMBoGA1UEAxMTUG9sYXJzc2wgVGVzdCBFQyBDQYIJAMFD4n5iQ8zoMAoG\r\n" |
maclobdell | 0:f7c60d3e7b8a | 75 | "CCqGSM49BAMCA2gAMGUCMQCaLFzXptui5WQN8LlO3ddh1hMxx6tzgLvT03MTVK2S\r\n" |
maclobdell | 0:f7c60d3e7b8a | 76 | "C12r0Lz3ri/moSEpNZWqPjkCMCE2f53GXcYLqyfyJR078c/xNSUU5+Xxl7VZ414V\r\n" |
maclobdell | 0:f7c60d3e7b8a | 77 | "fGa5kHvHARBPc8YAIVIqDvHH1Q==\r\n" |
maclobdell | 0:f7c60d3e7b8a | 78 | "-----END CERTIFICATE-----\r\n"; |
maclobdell | 0:f7c60d3e7b8a | 79 | |
maclobdell | 0:f7c60d3e7b8a | 80 | const char mbedtls_test_srv_key_ec[] = |
maclobdell | 0:f7c60d3e7b8a | 81 | "-----BEGIN EC PRIVATE KEY-----\r\n" |
maclobdell | 0:f7c60d3e7b8a | 82 | "MHcCAQEEIPEqEyB2AnCoPL/9U/YDHvdqXYbIogTywwyp6/UfDw6noAoGCCqGSM49\r\n" |
maclobdell | 0:f7c60d3e7b8a | 83 | "AwEHoUQDQgAEN8xW2XYJHlpyPsdZLf8gbu58+QaRdNCtFLX3aCJZYpJO5QDYIxH/\r\n" |
maclobdell | 0:f7c60d3e7b8a | 84 | "6i/SNF1dFr2KiMJrdw1VzYoqDvoByLTt/w==\r\n" |
maclobdell | 0:f7c60d3e7b8a | 85 | "-----END EC PRIVATE KEY-----\r\n"; |
maclobdell | 0:f7c60d3e7b8a | 86 | |
maclobdell | 0:f7c60d3e7b8a | 87 | const char mbedtls_test_cli_crt_ec[] = |
maclobdell | 0:f7c60d3e7b8a | 88 | "-----BEGIN CERTIFICATE-----\r\n" |
maclobdell | 0:f7c60d3e7b8a | 89 | "MIICLDCCAbKgAwIBAgIBDTAKBggqhkjOPQQDAjA+MQswCQYDVQQGEwJOTDERMA8G\r\n" |
maclobdell | 0:f7c60d3e7b8a | 90 | "A1UEChMIUG9sYXJTU0wxHDAaBgNVBAMTE1BvbGFyc3NsIFRlc3QgRUMgQ0EwHhcN\r\n" |
maclobdell | 0:f7c60d3e7b8a | 91 | "MTMwOTI0MTU1MjA0WhcNMjMwOTIyMTU1MjA0WjBBMQswCQYDVQQGEwJOTDERMA8G\r\n" |
maclobdell | 0:f7c60d3e7b8a | 92 | "A1UEChMIUG9sYXJTU0wxHzAdBgNVBAMTFlBvbGFyU1NMIFRlc3QgQ2xpZW50IDIw\r\n" |
maclobdell | 0:f7c60d3e7b8a | 93 | "WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARX5a6xc9/TrLuTuIH/Eq7u5lOszlVT\r\n" |
maclobdell | 0:f7c60d3e7b8a | 94 | "9jQOzC7jYyUL35ji81xgNpbA1RgUcOV/n9VLRRjlsGzVXPiWj4dwo+THo4GdMIGa\r\n" |
maclobdell | 0:f7c60d3e7b8a | 95 | "MAkGA1UdEwQCMAAwHQYDVR0OBBYEFHoAX4Zk/OBd5REQO7LmO8QmP8/iMG4GA1Ud\r\n" |
maclobdell | 0:f7c60d3e7b8a | 96 | "IwRnMGWAFJ1tICRJAT8ry3i1Gbx+JMnb+zZ8oUKkQDA+MQswCQYDVQQGEwJOTDER\r\n" |
maclobdell | 0:f7c60d3e7b8a | 97 | "MA8GA1UEChMIUG9sYXJTU0wxHDAaBgNVBAMTE1BvbGFyc3NsIFRlc3QgRUMgQ0GC\r\n" |
maclobdell | 0:f7c60d3e7b8a | 98 | "CQDBQ+J+YkPM6DAKBggqhkjOPQQDAgNoADBlAjBKZQ17IIOimbmoD/yN7o89u3BM\r\n" |
maclobdell | 0:f7c60d3e7b8a | 99 | "lgOsjnhw3fIOoLIWy2WOGsk/LGF++DzvrRzuNiACMQCd8iem1XS4JK7haj8xocpU\r\n" |
maclobdell | 0:f7c60d3e7b8a | 100 | "LwjQje5PDGHfd3h9tP38Qknu5bJqws0md2KOKHyeV0U=\r\n" |
maclobdell | 0:f7c60d3e7b8a | 101 | "-----END CERTIFICATE-----\r\n"; |
maclobdell | 0:f7c60d3e7b8a | 102 | |
maclobdell | 0:f7c60d3e7b8a | 103 | const char mbedtls_test_cli_key_ec[] = |
maclobdell | 0:f7c60d3e7b8a | 104 | "-----BEGIN EC PRIVATE KEY-----\r\n" |
maclobdell | 0:f7c60d3e7b8a | 105 | "MHcCAQEEIPb3hmTxZ3/mZI3vyk7p3U3wBf+WIop6hDhkFzJhmLcqoAoGCCqGSM49\r\n" |
maclobdell | 0:f7c60d3e7b8a | 106 | "AwEHoUQDQgAEV+WusXPf06y7k7iB/xKu7uZTrM5VU/Y0Dswu42MlC9+Y4vNcYDaW\r\n" |
maclobdell | 0:f7c60d3e7b8a | 107 | "wNUYFHDlf5/VS0UY5bBs1Vz4lo+HcKPkxw==\r\n" |
maclobdell | 0:f7c60d3e7b8a | 108 | "-----END EC PRIVATE KEY-----\r\n"; |
maclobdell | 0:f7c60d3e7b8a | 109 | |
maclobdell | 0:f7c60d3e7b8a | 110 | const size_t mbedtls_test_ca_crt_ec_len = sizeof( mbedtls_test_ca_crt_ec ); |
maclobdell | 0:f7c60d3e7b8a | 111 | const size_t mbedtls_test_ca_key_ec_len = sizeof( mbedtls_test_ca_key_ec ); |
maclobdell | 0:f7c60d3e7b8a | 112 | const size_t mbedtls_test_ca_pwd_ec_len = sizeof( mbedtls_test_ca_pwd_ec ) - 1; |
maclobdell | 0:f7c60d3e7b8a | 113 | const size_t mbedtls_test_srv_crt_ec_len = sizeof( mbedtls_test_srv_crt_ec ); |
maclobdell | 0:f7c60d3e7b8a | 114 | const size_t mbedtls_test_srv_key_ec_len = sizeof( mbedtls_test_srv_key_ec ); |
maclobdell | 0:f7c60d3e7b8a | 115 | const size_t mbedtls_test_cli_crt_ec_len = sizeof( mbedtls_test_cli_crt_ec ); |
maclobdell | 0:f7c60d3e7b8a | 116 | const size_t mbedtls_test_cli_key_ec_len = sizeof( mbedtls_test_cli_key_ec ); |
maclobdell | 0:f7c60d3e7b8a | 117 | #else |
maclobdell | 0:f7c60d3e7b8a | 118 | #define TEST_CA_CRT_EC |
maclobdell | 0:f7c60d3e7b8a | 119 | #endif /* MBEDTLS_ECDSA_C */ |
maclobdell | 0:f7c60d3e7b8a | 120 | |
maclobdell | 0:f7c60d3e7b8a | 121 | #if defined(MBEDTLS_RSA_C) |
maclobdell | 0:f7c60d3e7b8a | 122 | #define TEST_CA_CRT_RSA \ |
maclobdell | 0:f7c60d3e7b8a | 123 | "-----BEGIN CERTIFICATE-----\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 124 | "MIIDhzCCAm+gAwIBAgIBADANBgkqhkiG9w0BAQUFADA7MQswCQYDVQQGEwJOTDER\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 125 | "MA8GA1UEChMIUG9sYXJTU0wxGTAXBgNVBAMTEFBvbGFyU1NMIFRlc3QgQ0EwHhcN\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 126 | "MTEwMjEyMTQ0NDAwWhcNMjEwMjEyMTQ0NDAwWjA7MQswCQYDVQQGEwJOTDERMA8G\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 127 | "A1UEChMIUG9sYXJTU0wxGTAXBgNVBAMTEFBvbGFyU1NMIFRlc3QgQ0EwggEiMA0G\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 128 | "CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDA3zf8F7vglp0/ht6WMn1EpRagzSHx\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 129 | "mdTs6st8GFgIlKXsm8WL3xoemTiZhx57wI053zhdcHgH057Zk+i5clHFzqMwUqny\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 130 | "50BwFMtEonILwuVA+T7lpg6z+exKY8C4KQB0nFc7qKUEkHHxvYPZP9al4jwqj+8n\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 131 | "YMPGn8u67GB9t+aEMr5P+1gmIgNb1LTV+/Xjli5wwOQuvfwu7uJBVcA0Ln0kcmnL\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 132 | "R7EUQIN9Z/SG9jGr8XmksrUuEvmEF/Bibyc+E1ixVA0hmnM3oTDPb5Lc9un8rNsu\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 133 | "KNF+AksjoBXyOGVkCeoMbo4bF6BxyLObyavpw/LPh5aPgAIynplYb6LVAgMBAAGj\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 134 | "gZUwgZIwDAYDVR0TBAUwAwEB/zAdBgNVHQ4EFgQUtFrkpbPe0lL2udWmlQ/rPrzH\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 135 | "/f8wYwYDVR0jBFwwWoAUtFrkpbPe0lL2udWmlQ/rPrzH/f+hP6Q9MDsxCzAJBgNV\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 136 | "BAYTAk5MMREwDwYDVQQKEwhQb2xhclNTTDEZMBcGA1UEAxMQUG9sYXJTU0wgVGVz\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 137 | "dCBDQYIBADANBgkqhkiG9w0BAQUFAAOCAQEAuP1U2ABUkIslsCfdlc2i94QHHYeJ\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 138 | "SsR4EdgHtdciUI5I62J6Mom+Y0dT/7a+8S6MVMCZP6C5NyNyXw1GWY/YR82XTJ8H\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 139 | "DBJiCTok5DbZ6SzaONBzdWHXwWwmi5vg1dxn7YxrM9d0IjxM27WNKs4sDQhZBQkF\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 140 | "pjmfs2cb4oPl4Y9T9meTx/lvdkRYEug61Jfn6cA+qHpyPYdTH+UshITnmp5/Ztkf\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 141 | "m/UTSLBNFNHesiTZeH31NcxYGdHSme9Nc/gfidRa0FLOCfWxRlFqAI47zG9jAQCZ\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 142 | "7Z2mCGDNMhjQc+BYcdnl0lPXjdDK6V0qCg1dVewhUBcW5gZKzV7e9+DpVA==\r\n" \ |
maclobdell | 0:f7c60d3e7b8a | 143 | "-----END CERTIFICATE-----\r\n" |
maclobdell | 0:f7c60d3e7b8a | 144 | const char mbedtls_test_ca_crt_rsa[] = TEST_CA_CRT_RSA; |
maclobdell | 0:f7c60d3e7b8a | 145 | |
maclobdell | 0:f7c60d3e7b8a | 146 | const char mbedtls_test_ca_key_rsa[] = |
maclobdell | 0:f7c60d3e7b8a | 147 | "-----BEGIN RSA PRIVATE KEY-----\r\n" |
maclobdell | 0:f7c60d3e7b8a | 148 | "Proc-Type: 4,ENCRYPTED\r\n" |
maclobdell | 0:f7c60d3e7b8a | 149 | "DEK-Info: DES-EDE3-CBC,A8A95B05D5B7206B\r\n" |
maclobdell | 0:f7c60d3e7b8a | 150 | "\r\n" |
maclobdell | 0:f7c60d3e7b8a | 151 | "9Qd9GeArejl1GDVh2lLV1bHt0cPtfbh5h/5zVpAVaFpqtSPMrElp50Rntn9et+JA\r\n" |
maclobdell | 0:f7c60d3e7b8a | 152 | "7VOyboR+Iy2t/HU4WvA687k3Bppe9GwKHjHhtl//8xFKwZr3Xb5yO5JUP8AUctQq\r\n" |
maclobdell | 0:f7c60d3e7b8a | 153 | "Nb8CLlZyuUC+52REAAthdWgsX+7dJO4yabzUcQ22Tp9JSD0hiL43BlkWYUNK3dAo\r\n" |
maclobdell | 0:f7c60d3e7b8a | 154 | "PZlmiptjnzVTjg1MxsBSydZinWOLBV8/JQgxSPo2yD4uEfig28qbvQ2wNIn0pnAb\r\n" |
maclobdell | 0:f7c60d3e7b8a | 155 | "GxnSAOazkongEGfvcjIIs+LZN9gXFhxcOh6kc4Q/c99B7QWETwLLkYgZ+z1a9VY9\r\n" |
maclobdell | 0:f7c60d3e7b8a | 156 | "gEU7CwCxYCD+h9hY6FPmsK0/lC4O7aeRKpYq00rPPxs6i7phiexg6ax6yTMmArQq\r\n" |
maclobdell | 0:f7c60d3e7b8a | 157 | "QmK3TAsJm8V/J5AWpLEV6jAFgRGymGGHnof0DXzVWZidrcZJWTNuGEX90nB3ee2w\r\n" |
maclobdell | 0:f7c60d3e7b8a | 158 | "PXJEFWKoD3K3aFcSLdHYr3mLGxP7H9ThQai9VsycxZKS5kwvBKQ//YMrmFfwPk8x\r\n" |
maclobdell | 0:f7c60d3e7b8a | 159 | "vTeY4KZMaUrveEel5tWZC94RSMKgxR6cyE1nBXyTQnDOGbfpNNgBKxyKbINWoOJU\r\n" |
maclobdell | 0:f7c60d3e7b8a | 160 | "WJZAwlsQn+QzCDwpri7+sV1mS3gBE6UY7aQmnmiiaC2V3Hbphxct/en5QsfDOt1X\r\n" |
maclobdell | 0:f7c60d3e7b8a | 161 | "JczSfpRWLlbPznZg8OQh/VgCMA58N5DjOzTIK7sJJ5r+94ZBTCpgAMbF588f0NTR\r\n" |
maclobdell | 0:f7c60d3e7b8a | 162 | "KCe4yrxGJR7X02M4nvD4IwOlpsQ8xQxZtOSgXv4LkxvdU9XJJKWZ/XNKJeWztxSe\r\n" |
maclobdell | 0:f7c60d3e7b8a | 163 | "Z1vdTc2YfsDBA2SEv33vxHx2g1vqtw8SjDRT2RaQSS0QuSaMJimdOX6mTOCBKk1J\r\n" |
maclobdell | 0:f7c60d3e7b8a | 164 | "9Q5mXTrER+/LnK0jEmXsBXWA5bqqVZIyahXSx4VYZ7l7w/PHiUDtDgyRhMMKi4n2\r\n" |
maclobdell | 0:f7c60d3e7b8a | 165 | "iQvQcWSQTjrpnlJbca1/DkpRt3YwrvJwdqb8asZU2VrNETh5x0QVefDRLFiVpif/\r\n" |
maclobdell | 0:f7c60d3e7b8a | 166 | "tUaeAe/P1F8OkS7OIZDs1SUbv/sD2vMbhNkUoCms3/PvNtdnvgL4F0zhaDpKCmlT\r\n" |
maclobdell | 0:f7c60d3e7b8a | 167 | "P8vx49E7v5CyRNmED9zZg4o3wmMqrQO93PtTug3Eu9oVx1zPQM1NVMyBa2+f29DL\r\n" |
maclobdell | 0:f7c60d3e7b8a | 168 | "1nuTCeXdo9+ni45xx+jAI4DCwrRdhJ9uzZyC6962H37H6D+5naNvClFR1s6li1Gb\r\n" |
maclobdell | 0:f7c60d3e7b8a | 169 | "nqPoiy/OBsEx9CaDGcqQBp5Wme/3XW+6z1ISOx+igwNTVCT14mHdBMbya0eIKft5\r\n" |
maclobdell | 0:f7c60d3e7b8a | 170 | "X+GnwtgEMyCYyyWuUct8g4RzErcY9+yW9Om5Hzpx4zOuW4NPZgPDTgK+t2RSL/Yq\r\n" |
maclobdell | 0:f7c60d3e7b8a | 171 | "rE1njrgeGYcVeG3f+OftH4s6fPbq7t1A5ZgUscbLMBqr9tK+OqygR4EgKBPsH6Cz\r\n" |
maclobdell | 0:f7c60d3e7b8a | 172 | "L6zlv/2RV0qAHvVuDJcIDIgwY5rJtINEm32rhOeFNJwZS5MNIC1czXZx5//ugX7l\r\n" |
maclobdell | 0:f7c60d3e7b8a | 173 | "I4sy5nbVhwSjtAk8Xg5dZbdTZ6mIrb7xqH+fdakZor1khG7bC2uIwibD3cSl2XkR\r\n" |
maclobdell | 0:f7c60d3e7b8a | 174 | "wN48lslbHnqqagr6Xm1nNOSVl8C/6kbJEsMpLhAezfRtGwvOucoaE+WbeUNolGde\r\n" |
maclobdell | 0:f7c60d3e7b8a | 175 | "P/eQiddSf0brnpiLJRh7qZrl9XuqYdpUqnoEdMAfotDOID8OtV7gt8a48ad8VPW2\r\n" |
maclobdell | 0:f7c60d3e7b8a | 176 | "-----END RSA PRIVATE KEY-----\r\n"; |
maclobdell | 0:f7c60d3e7b8a | 177 | |
maclobdell | 0:f7c60d3e7b8a | 178 | const char mbedtls_test_ca_pwd_rsa[] = "PolarSSLTest"; |
maclobdell | 0:f7c60d3e7b8a | 179 | |
maclobdell | 0:f7c60d3e7b8a | 180 | const char mbedtls_test_srv_crt_rsa[] = |
maclobdell | 0:f7c60d3e7b8a | 181 | "-----BEGIN CERTIFICATE-----\r\n" |
maclobdell | 0:f7c60d3e7b8a | 182 | "MIIDNzCCAh+gAwIBAgIBAjANBgkqhkiG9w0BAQUFADA7MQswCQYDVQQGEwJOTDER\r\n" |
maclobdell | 0:f7c60d3e7b8a | 183 | "MA8GA1UEChMIUG9sYXJTU0wxGTAXBgNVBAMTEFBvbGFyU1NMIFRlc3QgQ0EwHhcN\r\n" |
maclobdell | 0:f7c60d3e7b8a | 184 | "MTEwMjEyMTQ0NDA2WhcNMjEwMjEyMTQ0NDA2WjA0MQswCQYDVQQGEwJOTDERMA8G\r\n" |
maclobdell | 0:f7c60d3e7b8a | 185 | "A1UEChMIUG9sYXJTU0wxEjAQBgNVBAMTCWxvY2FsaG9zdDCCASIwDQYJKoZIhvcN\r\n" |
maclobdell | 0:f7c60d3e7b8a | 186 | "AQEBBQADggEPADCCAQoCggEBAMFNo93nzR3RBNdJcriZrA545Do8Ss86ExbQWuTN\r\n" |
maclobdell | 0:f7c60d3e7b8a | 187 | "owCIp+4ea5anUrSQ7y1yej4kmvy2NKwk9XfgJmSMnLAofaHa6ozmyRyWvP7BBFKz\r\n" |
maclobdell | 0:f7c60d3e7b8a | 188 | "NtSj+uGxdtiQwWG0ZlI2oiZTqqt0Xgd9GYLbKtgfoNkNHC1JZvdbJXNG6AuKT2kM\r\n" |
maclobdell | 0:f7c60d3e7b8a | 189 | "tQCQ4dqCEGZ9rlQri2V5kaHiYcPNQEkI7mgM8YuG0ka/0LiqEQMef1aoGh5EGA8P\r\n" |
maclobdell | 0:f7c60d3e7b8a | 190 | "hYvai0Re4hjGYi/HZo36Xdh98yeJKQHFkA4/J/EwyEoO79bex8cna8cFPXrEAjya\r\n" |
maclobdell | 0:f7c60d3e7b8a | 191 | "HT4P6DSYW8tzS1KW2BGiLICIaTla0w+w3lkvEcf36hIBMJcCAwEAAaNNMEswCQYD\r\n" |
maclobdell | 0:f7c60d3e7b8a | 192 | "VR0TBAIwADAdBgNVHQ4EFgQUpQXoZLjc32APUBJNYKhkr02LQ5MwHwYDVR0jBBgw\r\n" |
maclobdell | 0:f7c60d3e7b8a | 193 | "FoAUtFrkpbPe0lL2udWmlQ/rPrzH/f8wDQYJKoZIhvcNAQEFBQADggEBAJxnXClY\r\n" |
maclobdell | 0:f7c60d3e7b8a | 194 | "oHkbp70cqBrsGXLybA74czbO5RdLEgFs7rHVS9r+c293luS/KdliLScZqAzYVylw\r\n" |
maclobdell | 0:f7c60d3e7b8a | 195 | "UfRWvKMoWhHYKp3dEIS4xTXk6/5zXxhv9Rw8SGc8qn6vITHk1S1mPevtekgasY5Y\r\n" |
maclobdell | 0:f7c60d3e7b8a | 196 | "iWQuM3h4YVlRH3HHEMAD1TnAexfXHHDFQGe+Bd1iAbz1/sH9H8l4StwX6egvTK3M\r\n" |
maclobdell | 0:f7c60d3e7b8a | 197 | "wXRwkKkvjKaEDA9ATbZx0mI8LGsxSuCqe9r9dyjmttd47J1p1Rulz3CLzaRcVIuS\r\n" |
maclobdell | 0:f7c60d3e7b8a | 198 | "RRQfaD8neM9c1S/iJ/amTVqJxA1KOdOS5780WhPfSArA+g4qAmSjelc3p4wWpha8\r\n" |
maclobdell | 0:f7c60d3e7b8a | 199 | "zhuYwjVuX6JHG0c=\r\n" |
maclobdell | 0:f7c60d3e7b8a | 200 | "-----END CERTIFICATE-----\r\n"; |
maclobdell | 0:f7c60d3e7b8a | 201 | |
maclobdell | 0:f7c60d3e7b8a | 202 | const char mbedtls_test_srv_key_rsa[] = |
maclobdell | 0:f7c60d3e7b8a | 203 | "-----BEGIN RSA PRIVATE KEY-----\r\n" |
maclobdell | 0:f7c60d3e7b8a | 204 | "MIIEpAIBAAKCAQEAwU2j3efNHdEE10lyuJmsDnjkOjxKzzoTFtBa5M2jAIin7h5r\r\n" |
maclobdell | 0:f7c60d3e7b8a | 205 | "lqdStJDvLXJ6PiSa/LY0rCT1d+AmZIycsCh9odrqjObJHJa8/sEEUrM21KP64bF2\r\n" |
maclobdell | 0:f7c60d3e7b8a | 206 | "2JDBYbRmUjaiJlOqq3ReB30Zgtsq2B+g2Q0cLUlm91slc0boC4pPaQy1AJDh2oIQ\r\n" |
maclobdell | 0:f7c60d3e7b8a | 207 | "Zn2uVCuLZXmRoeJhw81ASQjuaAzxi4bSRr/QuKoRAx5/VqgaHkQYDw+Fi9qLRF7i\r\n" |
maclobdell | 0:f7c60d3e7b8a | 208 | "GMZiL8dmjfpd2H3zJ4kpAcWQDj8n8TDISg7v1t7HxydrxwU9esQCPJodPg/oNJhb\r\n" |
maclobdell | 0:f7c60d3e7b8a | 209 | "y3NLUpbYEaIsgIhpOVrTD7DeWS8Rx/fqEgEwlwIDAQABAoIBAQCXR0S8EIHFGORZ\r\n" |
maclobdell | 0:f7c60d3e7b8a | 210 | "++AtOg6eENxD+xVs0f1IeGz57Tjo3QnXX7VBZNdj+p1ECvhCE/G7XnkgU5hLZX+G\r\n" |
maclobdell | 0:f7c60d3e7b8a | 211 | "Z0jkz/tqJOI0vRSdLBbipHnWouyBQ4e/A1yIJdlBtqXxJ1KE/ituHRbNc4j4kL8Z\r\n" |
maclobdell | 0:f7c60d3e7b8a | 212 | "/r6pvwnTI0PSx2Eqs048YdS92LT6qAv4flbNDxMn2uY7s4ycS4Q8w1JXnCeaAnYm\r\n" |
maclobdell | 0:f7c60d3e7b8a | 213 | "WYI5wxO+bvRELR2Mcz5DmVnL8jRyml6l6582bSv5oufReFIbyPZbQWlXgYnpu6He\r\n" |
maclobdell | 0:f7c60d3e7b8a | 214 | "GTc7E1zKYQGG/9+DQUl/1vQuCPqQwny0tQoX2w5tdYpdMdVm+zkLtbajzdTviJJa\r\n" |
maclobdell | 0:f7c60d3e7b8a | 215 | "TWzL6lt5AoGBAN86+SVeJDcmQJcv4Eq6UhtRr4QGMiQMz0Sod6ettYxYzMgxtw28\r\n" |
maclobdell | 0:f7c60d3e7b8a | 216 | "CIrgpozCc+UaZJLo7UxvC6an85r1b2nKPCLQFaggJ0H4Q0J/sZOhBIXaoBzWxveK\r\n" |
maclobdell | 0:f7c60d3e7b8a | 217 | "nupceKdVxGsFi8CDy86DBfiyFivfBj+47BbaQzPBj7C4rK7UlLjab2rDAoGBAN2u\r\n" |
maclobdell | 0:f7c60d3e7b8a | 218 | "AM2gchoFiu4v1HFL8D7lweEpi6ZnMJjnEu/dEgGQJFjwdpLnPbsj4c75odQ4Gz8g\r\n" |
maclobdell | 0:f7c60d3e7b8a | 219 | "sw9lao9VVzbusoRE/JGI4aTdO0pATXyG7eG1Qu+5Yc1YGXcCrliA2xM9xx+d7f+s\r\n" |
maclobdell | 0:f7c60d3e7b8a | 220 | "mPzN+WIEg5GJDYZDjAzHG5BNvi/FfM1C9dOtjv2dAoGAF0t5KmwbjWHBhcVqO4Ic\r\n" |
maclobdell | 0:f7c60d3e7b8a | 221 | "BVvN3BIlc1ue2YRXEDlxY5b0r8N4XceMgKmW18OHApZxfl8uPDauWZLXOgl4uepv\r\n" |
maclobdell | 0:f7c60d3e7b8a | 222 | "whZC3EuWrSyyICNhLY21Ah7hbIEBPF3L3ZsOwC+UErL+dXWLdB56Jgy3gZaBeW7b\r\n" |
maclobdell | 0:f7c60d3e7b8a | 223 | "vDrEnocJbqCm7IukhXHOBK8CgYEAwqdHB0hqyNSzIOGY7v9abzB6pUdA3BZiQvEs\r\n" |
maclobdell | 0:f7c60d3e7b8a | 224 | "3LjHVd4HPJ2x0N8CgrBIWOE0q8+0hSMmeE96WW/7jD3fPWwCR5zlXknxBQsfv0gP\r\n" |
maclobdell | 0:f7c60d3e7b8a | 225 | "3BC5PR0Qdypz+d+9zfMf625kyit4T/hzwhDveZUzHnk1Cf+IG7Q+TOEnLnWAWBED\r\n" |
maclobdell | 0:f7c60d3e7b8a | 226 | "ISOWmrUCgYAFEmRxgwAc/u+D6t0syCwAYh6POtscq9Y0i9GyWk89NzgC4NdwwbBH\r\n" |
maclobdell | 0:f7c60d3e7b8a | 227 | "4AgahOxIxXx2gxJnq3yfkJfIjwf0s2DyP0kY2y6Ua1OeomPeY9mrIS4tCuDQ6LrE\r\n" |
maclobdell | 0:f7c60d3e7b8a | 228 | "TB6l9VGoxJL4fyHnZb8L5gGvnB1bbD8cL6YPaDiOhcRseC9vBiEuVg==\r\n" |
maclobdell | 0:f7c60d3e7b8a | 229 | "-----END RSA PRIVATE KEY-----\r\n"; |
maclobdell | 0:f7c60d3e7b8a | 230 | |
maclobdell | 0:f7c60d3e7b8a | 231 | const char mbedtls_test_cli_crt_rsa[] = |
maclobdell | 0:f7c60d3e7b8a | 232 | "-----BEGIN CERTIFICATE-----\r\n" |
maclobdell | 0:f7c60d3e7b8a | 233 | "MIIDPzCCAiegAwIBAgIBBDANBgkqhkiG9w0BAQUFADA7MQswCQYDVQQGEwJOTDER\r\n" |
maclobdell | 0:f7c60d3e7b8a | 234 | "MA8GA1UEChMIUG9sYXJTU0wxGTAXBgNVBAMTEFBvbGFyU1NMIFRlc3QgQ0EwHhcN\r\n" |
maclobdell | 0:f7c60d3e7b8a | 235 | "MTEwMjEyMTQ0NDA3WhcNMjEwMjEyMTQ0NDA3WjA8MQswCQYDVQQGEwJOTDERMA8G\r\n" |
maclobdell | 0:f7c60d3e7b8a | 236 | "A1UEChMIUG9sYXJTU0wxGjAYBgNVBAMTEVBvbGFyU1NMIENsaWVudCAyMIIBIjAN\r\n" |
maclobdell | 0:f7c60d3e7b8a | 237 | "BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyHTEzLn5tXnpRdkUYLB9u5Pyax6f\r\n" |
maclobdell | 0:f7c60d3e7b8a | 238 | "M60Nj4o8VmXl3ETZzGaFB9X4J7BKNdBjngpuG7fa8H6r7gwQk4ZJGDTzqCrSV/Uu\r\n" |
maclobdell | 0:f7c60d3e7b8a | 239 | "1C93KYRhTYJQj6eVSHD1bk2y1RPD0hrt5kPqQhTrdOrA7R/UV06p86jt0uDBMHEw\r\n" |
maclobdell | 0:f7c60d3e7b8a | 240 | "MjDV0/YI0FZPRo7yX/k9Z5GIMC5Cst99++UMd//sMcB4j7/Cf8qtbCHWjdmLao5v\r\n" |
maclobdell | 0:f7c60d3e7b8a | 241 | "4Jv4EFbMs44TFeY0BGbH7vk2DmqV9gmaBmf0ZXH4yqSxJeD+PIs1BGe64E92hfx/\r\n" |
maclobdell | 0:f7c60d3e7b8a | 242 | "/DZrtenNLQNiTrM9AM+vdqBpVoNq0qjU51Bx5rU2BXcFbXvI5MT9TNUhXwIDAQAB\r\n" |
maclobdell | 0:f7c60d3e7b8a | 243 | "o00wSzAJBgNVHRMEAjAAMB0GA1UdDgQWBBRxoQBzckAvVHZeM/xSj7zx3WtGITAf\r\n" |
maclobdell | 0:f7c60d3e7b8a | 244 | "BgNVHSMEGDAWgBS0WuSls97SUva51aaVD+s+vMf9/zANBgkqhkiG9w0BAQUFAAOC\r\n" |
maclobdell | 0:f7c60d3e7b8a | 245 | "AQEAAn86isAM8X+mVwJqeItt6E9slhEQbAofyk+diH1Lh8Y9iLlWQSKbw/UXYjx5\r\n" |
maclobdell | 0:f7c60d3e7b8a | 246 | "LLPZcniovxIcARC/BjyZR9g3UwTHNGNm+rwrqa15viuNOFBchykX/Orsk02EH7NR\r\n" |
maclobdell | 0:f7c60d3e7b8a | 247 | "Alw5WLPorYjED6cdVQgBl9ot93HdJogRiXCxErM7NC8/eP511mjq+uLDjLKH8ZPQ\r\n" |
maclobdell | 0:f7c60d3e7b8a | 248 | "8I4ekHJnroLsDkIwXKGIsvIBHQy2ac/NwHLCQOK6mfum1pRx52V4Utu5dLLjD5bM\r\n" |
maclobdell | 0:f7c60d3e7b8a | 249 | "xOBC7KU4xZKuMXXZM6/93Yb51K/J4ahf1TxJlTWXtnzDr9saEYdNy2SKY/6ZiDNH\r\n" |
maclobdell | 0:f7c60d3e7b8a | 250 | "D+stpAKiQLAWaAusIWKYEyw9MQ==\r\n" |
maclobdell | 0:f7c60d3e7b8a | 251 | "-----END CERTIFICATE-----\r\n"; |
maclobdell | 0:f7c60d3e7b8a | 252 | |
maclobdell | 0:f7c60d3e7b8a | 253 | const char mbedtls_test_cli_key_rsa[] = |
maclobdell | 0:f7c60d3e7b8a | 254 | "-----BEGIN RSA PRIVATE KEY-----\r\n" |
maclobdell | 0:f7c60d3e7b8a | 255 | "MIIEpAIBAAKCAQEAyHTEzLn5tXnpRdkUYLB9u5Pyax6fM60Nj4o8VmXl3ETZzGaF\r\n" |
maclobdell | 0:f7c60d3e7b8a | 256 | "B9X4J7BKNdBjngpuG7fa8H6r7gwQk4ZJGDTzqCrSV/Uu1C93KYRhTYJQj6eVSHD1\r\n" |
maclobdell | 0:f7c60d3e7b8a | 257 | "bk2y1RPD0hrt5kPqQhTrdOrA7R/UV06p86jt0uDBMHEwMjDV0/YI0FZPRo7yX/k9\r\n" |
maclobdell | 0:f7c60d3e7b8a | 258 | "Z5GIMC5Cst99++UMd//sMcB4j7/Cf8qtbCHWjdmLao5v4Jv4EFbMs44TFeY0BGbH\r\n" |
maclobdell | 0:f7c60d3e7b8a | 259 | "7vk2DmqV9gmaBmf0ZXH4yqSxJeD+PIs1BGe64E92hfx//DZrtenNLQNiTrM9AM+v\r\n" |
maclobdell | 0:f7c60d3e7b8a | 260 | "dqBpVoNq0qjU51Bx5rU2BXcFbXvI5MT9TNUhXwIDAQABAoIBAGdNtfYDiap6bzst\r\n" |
maclobdell | 0:f7c60d3e7b8a | 261 | "yhCiI8m9TtrhZw4MisaEaN/ll3XSjaOG2dvV6xMZCMV+5TeXDHOAZnY18Yi18vzz\r\n" |
maclobdell | 0:f7c60d3e7b8a | 262 | "4Ut2TnNFzizCECYNaA2fST3WgInnxUkV3YXAyP6CNxJaCmv2aA0yFr2kFVSeaKGt\r\n" |
maclobdell | 0:f7c60d3e7b8a | 263 | "ymvljNp2NVkvm7Th8fBQBO7I7AXhz43k0mR7XmPgewe8ApZOG3hstkOaMvbWAvWA\r\n" |
maclobdell | 0:f7c60d3e7b8a | 264 | "zCZupdDjZYjOJqlA4eEA4H8/w7F83r5CugeBE8LgEREjLPiyejrU5H1fubEY+h0d\r\n" |
maclobdell | 0:f7c60d3e7b8a | 265 | "l5HZBJ68ybTXfQ5U9o/QKA3dd0toBEhhdRUDGzWtjvwkEQfqF1reGWj/tod/gCpf\r\n" |
maclobdell | 0:f7c60d3e7b8a | 266 | "DFi6X0ECgYEA4wOv/pjSC3ty6TuOvKX2rOUiBrLXXv2JSxZnMoMiWI5ipLQt+RYT\r\n" |
maclobdell | 0:f7c60d3e7b8a | 267 | "VPafL/m7Dn6MbwjayOkcZhBwk5CNz5A6Q4lJ64Mq/lqHznRCQQ2Mc1G8eyDF/fYL\r\n" |
maclobdell | 0:f7c60d3e7b8a | 268 | "Ze2pLvwP9VD5jTc2miDfw+MnvJhywRRLcemDFP8k4hQVtm8PMp3ZmNECgYEA4gz7\r\n" |
maclobdell | 0:f7c60d3e7b8a | 269 | "wzObR4gn8ibe617uQPZjWzUj9dUHYd+in1gwBCIrtNnaRn9I9U/Q6tegRYpii4ys\r\n" |
maclobdell | 0:f7c60d3e7b8a | 270 | "c176NmU+umy6XmuSKV5qD9bSpZWG2nLFnslrN15Lm3fhZxoeMNhBaEDTnLT26yoi\r\n" |
maclobdell | 0:f7c60d3e7b8a | 271 | "33gp0mSSWy94ZEqipms+ULF6sY1ZtFW6tpGFoy8CgYAQHhnnvJflIs2ky4q10B60\r\n" |
maclobdell | 0:f7c60d3e7b8a | 272 | "ZcxFp3rtDpkp0JxhFLhiizFrujMtZSjYNm5U7KkgPVHhLELEUvCmOnKTt4ap/vZ0\r\n" |
maclobdell | 0:f7c60d3e7b8a | 273 | "BxJNe1GZH3pW6SAvGDQpl9sG7uu/vTFP+lCxukmzxB0DrrDcvorEkKMom7ZCCRvW\r\n" |
maclobdell | 0:f7c60d3e7b8a | 274 | "KZsZ6YeH2Z81BauRj218kQKBgQCUV/DgKP2985xDTT79N08jUo3hTP5MVYCCuj/+\r\n" |
maclobdell | 0:f7c60d3e7b8a | 275 | "UeEw1TvZcx3LJby7P6Xad6a1/BqveaGyFKIfEFIaBUBItk801sDDpDaYc4gL00Xc\r\n" |
maclobdell | 0:f7c60d3e7b8a | 276 | "7lFuBHOZkxJYlss5QrGpuOEl9ZwUt5IrFLBdYaKqNHzNVC1pCPfb/JyH6Dr2HUxq\r\n" |
maclobdell | 0:f7c60d3e7b8a | 277 | "gxUwAQKBgQCcU6G2L8AG9d9c0UpOyL1tMvFe5Ttw0KjlQVdsh1MP6yigYo9DYuwu\r\n" |
maclobdell | 0:f7c60d3e7b8a | 278 | "bHFVW2r0dBTqegP2/KTOxKzaHfC1qf0RGDsUoJCNJrd1cwoCLG8P2EF4w3OBrKqv\r\n" |
maclobdell | 0:f7c60d3e7b8a | 279 | "8u4ytY0F+Vlanj5lm3TaoHSVF1+NWPyOTiwevIECGKwSxvlki4fDAA==\r\n" |
maclobdell | 0:f7c60d3e7b8a | 280 | "-----END RSA PRIVATE KEY-----\r\n"; |
maclobdell | 0:f7c60d3e7b8a | 281 | |
maclobdell | 0:f7c60d3e7b8a | 282 | const size_t mbedtls_test_ca_crt_rsa_len = sizeof( mbedtls_test_ca_crt_rsa ); |
maclobdell | 0:f7c60d3e7b8a | 283 | const size_t mbedtls_test_ca_key_rsa_len = sizeof( mbedtls_test_ca_key_rsa ); |
maclobdell | 0:f7c60d3e7b8a | 284 | const size_t mbedtls_test_ca_pwd_rsa_len = sizeof( mbedtls_test_ca_pwd_rsa ) - 1; |
maclobdell | 0:f7c60d3e7b8a | 285 | const size_t mbedtls_test_srv_crt_rsa_len = sizeof( mbedtls_test_srv_crt_rsa ); |
maclobdell | 0:f7c60d3e7b8a | 286 | const size_t mbedtls_test_srv_key_rsa_len = sizeof( mbedtls_test_srv_key_rsa ); |
maclobdell | 0:f7c60d3e7b8a | 287 | const size_t mbedtls_test_cli_crt_rsa_len = sizeof( mbedtls_test_cli_crt_rsa ); |
maclobdell | 0:f7c60d3e7b8a | 288 | const size_t mbedtls_test_cli_key_rsa_len = sizeof( mbedtls_test_cli_key_rsa ); |
maclobdell | 0:f7c60d3e7b8a | 289 | #else |
maclobdell | 0:f7c60d3e7b8a | 290 | #define TEST_CA_CRT_RSA |
maclobdell | 0:f7c60d3e7b8a | 291 | #endif /* MBEDTLS_RSA_C */ |
maclobdell | 0:f7c60d3e7b8a | 292 | |
maclobdell | 0:f7c60d3e7b8a | 293 | #if defined(MBEDTLS_PEM_PARSE_C) |
maclobdell | 0:f7c60d3e7b8a | 294 | /* Concatenation of all available CA certificates */ |
maclobdell | 0:f7c60d3e7b8a | 295 | const char mbedtls_test_cas_pem[] = TEST_CA_CRT_RSA TEST_CA_CRT_EC; |
maclobdell | 0:f7c60d3e7b8a | 296 | const size_t mbedtls_test_cas_pem_len = sizeof( mbedtls_test_cas_pem ); |
maclobdell | 0:f7c60d3e7b8a | 297 | #endif |
maclobdell | 0:f7c60d3e7b8a | 298 | |
maclobdell | 0:f7c60d3e7b8a | 299 | /* List of all available CA certificates */ |
maclobdell | 0:f7c60d3e7b8a | 300 | const char * mbedtls_test_cas[] = { |
maclobdell | 0:f7c60d3e7b8a | 301 | #if defined(MBEDTLS_RSA_C) |
maclobdell | 0:f7c60d3e7b8a | 302 | mbedtls_test_ca_crt_rsa, |
maclobdell | 0:f7c60d3e7b8a | 303 | #endif |
maclobdell | 0:f7c60d3e7b8a | 304 | #if defined(MBEDTLS_ECDSA_C) |
maclobdell | 0:f7c60d3e7b8a | 305 | mbedtls_test_ca_crt_ec, |
maclobdell | 0:f7c60d3e7b8a | 306 | #endif |
maclobdell | 0:f7c60d3e7b8a | 307 | NULL |
maclobdell | 0:f7c60d3e7b8a | 308 | }; |
maclobdell | 0:f7c60d3e7b8a | 309 | const size_t mbedtls_test_cas_len[] = { |
maclobdell | 0:f7c60d3e7b8a | 310 | #if defined(MBEDTLS_RSA_C) |
maclobdell | 0:f7c60d3e7b8a | 311 | sizeof( mbedtls_test_ca_crt_rsa ), |
maclobdell | 0:f7c60d3e7b8a | 312 | #endif |
maclobdell | 0:f7c60d3e7b8a | 313 | #if defined(MBEDTLS_ECDSA_C) |
maclobdell | 0:f7c60d3e7b8a | 314 | sizeof( mbedtls_test_ca_crt_ec ), |
maclobdell | 0:f7c60d3e7b8a | 315 | #endif |
maclobdell | 0:f7c60d3e7b8a | 316 | 0 |
maclobdell | 0:f7c60d3e7b8a | 317 | }; |
maclobdell | 0:f7c60d3e7b8a | 318 | |
maclobdell | 0:f7c60d3e7b8a | 319 | #if defined(MBEDTLS_RSA_C) |
maclobdell | 0:f7c60d3e7b8a | 320 | const char *mbedtls_test_ca_crt = mbedtls_test_ca_crt_rsa; |
maclobdell | 0:f7c60d3e7b8a | 321 | const char *mbedtls_test_ca_key = mbedtls_test_ca_key_rsa; |
maclobdell | 0:f7c60d3e7b8a | 322 | const char *mbedtls_test_ca_pwd = mbedtls_test_ca_pwd_rsa; |
maclobdell | 0:f7c60d3e7b8a | 323 | const char *mbedtls_test_srv_crt = mbedtls_test_srv_crt_rsa; |
maclobdell | 0:f7c60d3e7b8a | 324 | const char *mbedtls_test_srv_key = mbedtls_test_srv_key_rsa; |
maclobdell | 0:f7c60d3e7b8a | 325 | const char *mbedtls_test_cli_crt = mbedtls_test_cli_crt_rsa; |
maclobdell | 0:f7c60d3e7b8a | 326 | const char *mbedtls_test_cli_key = mbedtls_test_cli_key_rsa; |
maclobdell | 0:f7c60d3e7b8a | 327 | const size_t mbedtls_test_ca_crt_len = sizeof( mbedtls_test_ca_crt_rsa ); |
maclobdell | 0:f7c60d3e7b8a | 328 | const size_t mbedtls_test_ca_key_len = sizeof( mbedtls_test_ca_key_rsa ); |
maclobdell | 0:f7c60d3e7b8a | 329 | const size_t mbedtls_test_ca_pwd_len = sizeof( mbedtls_test_ca_pwd_rsa ) - 1; |
maclobdell | 0:f7c60d3e7b8a | 330 | const size_t mbedtls_test_srv_crt_len = sizeof( mbedtls_test_srv_crt_rsa ); |
maclobdell | 0:f7c60d3e7b8a | 331 | const size_t mbedtls_test_srv_key_len = sizeof( mbedtls_test_srv_key_rsa ); |
maclobdell | 0:f7c60d3e7b8a | 332 | const size_t mbedtls_test_cli_crt_len = sizeof( mbedtls_test_cli_crt_rsa ); |
maclobdell | 0:f7c60d3e7b8a | 333 | const size_t mbedtls_test_cli_key_len = sizeof( mbedtls_test_cli_key_rsa ); |
maclobdell | 0:f7c60d3e7b8a | 334 | #else /* ! MBEDTLS_RSA_C, so MBEDTLS_ECDSA_C */ |
maclobdell | 0:f7c60d3e7b8a | 335 | const char *mbedtls_test_ca_crt = mbedtls_test_ca_crt_ec; |
maclobdell | 0:f7c60d3e7b8a | 336 | const char *mbedtls_test_ca_key = mbedtls_test_ca_key_ec; |
maclobdell | 0:f7c60d3e7b8a | 337 | const char *mbedtls_test_ca_pwd = mbedtls_test_ca_pwd_ec; |
maclobdell | 0:f7c60d3e7b8a | 338 | const char *mbedtls_test_srv_crt = mbedtls_test_srv_crt_ec; |
maclobdell | 0:f7c60d3e7b8a | 339 | const char *mbedtls_test_srv_key = mbedtls_test_srv_key_ec; |
maclobdell | 0:f7c60d3e7b8a | 340 | const char *mbedtls_test_cli_crt = mbedtls_test_cli_crt_ec; |
maclobdell | 0:f7c60d3e7b8a | 341 | const char *mbedtls_test_cli_key = mbedtls_test_cli_key_ec; |
maclobdell | 0:f7c60d3e7b8a | 342 | const size_t mbedtls_test_ca_crt_len = sizeof( mbedtls_test_ca_crt_ec ); |
maclobdell | 0:f7c60d3e7b8a | 343 | const size_t mbedtls_test_ca_key_len = sizeof( mbedtls_test_ca_key_ec ); |
maclobdell | 0:f7c60d3e7b8a | 344 | const size_t mbedtls_test_ca_pwd_len = sizeof( mbedtls_test_ca_pwd_ec ) - 1; |
maclobdell | 0:f7c60d3e7b8a | 345 | const size_t mbedtls_test_srv_crt_len = sizeof( mbedtls_test_srv_crt_ec ); |
maclobdell | 0:f7c60d3e7b8a | 346 | const size_t mbedtls_test_srv_key_len = sizeof( mbedtls_test_srv_key_ec ); |
maclobdell | 0:f7c60d3e7b8a | 347 | const size_t mbedtls_test_cli_crt_len = sizeof( mbedtls_test_cli_crt_ec ); |
maclobdell | 0:f7c60d3e7b8a | 348 | const size_t mbedtls_test_cli_key_len = sizeof( mbedtls_test_cli_key_ec ); |
maclobdell | 0:f7c60d3e7b8a | 349 | #endif /* MBEDTLS_RSA_C */ |
maclobdell | 0:f7c60d3e7b8a | 350 | |
maclobdell | 0:f7c60d3e7b8a | 351 | #endif /* MBEDTLS_CERTS_C */ |