1 /*
2  * Copyright (c) 2018 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef __CERTIFICATE_H__
8 #define __CERTIFICATE_H__
9 
10 #define SERVER_CERTIFICATE_TAG 1
11 #define PSK_TAG 2
12 
13 #if !defined(CONFIG_NET_SAMPLE_CERTS_WITH_SC)
14 static const unsigned char server_certificate[] = {
15 #include "echo-apps-cert.der.inc"
16 };
17 
18 /* This is the private key in pkcs#8 format. */
19 static const unsigned char private_key[] = {
20 #include "echo-apps-key.der.inc"
21 };
22 
23 #else
24 
25 static const unsigned char ca_certificate[] = {
26 #include "ca.der.inc"
27 };
28 
29 static const unsigned char server_certificate[] = {
30 #include "server.der.inc"
31 };
32 
33 /* This is the private key in pkcs#8 format. */
34 static const unsigned char private_key[] = {
35 #include "server_privkey.der.inc"
36 };
37 #endif
38 
39 #if defined(CONFIG_MBEDTLS_KEY_EXCHANGE_PSK_ENABLED)
40 #include CONFIG_NET_SAMPLE_PSK_HEADER_FILE
41 #endif
42 
43 #endif /* __CERTIFICATE_H__ */
44