Wiki source code of How to configure the certificate?
Last modified by Xiaoling on 2024/05/21 14:45
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
2.1 | 1 | |
2 | |||
![]() |
8.2 | 3 | **Table of Contents:** |
4 | |||
![]() |
2.1 | 5 | {{toc/}} |
6 | |||
7 | |||
8 | |||
9 | |||
![]() |
8.2 | 10 | = 1. Burn the Configure certificate = |
11 | |||
12 | |||
![]() |
8.1 | 13 | (% style="color:blue" %)**hex firmware.** |
14 | |||
![]() |
4.2 | 15 | After burning, the serial port displays as follows: |
![]() |
2.1 | 16 | |
![]() |
4.2 | 17 | [[image:image-20240520093014-1.png]] |
![]() |
2.1 | 18 | |
19 | |||
![]() |
8.2 | 20 | = 2. Configure CA certificate = |
![]() |
2.1 | 21 | |
![]() |
8.1 | 22 | |
![]() |
4.2 | 23 | Please input the certificate in PEM format for the user. (The format of the image is entered casually, not in PEM format.) |
![]() |
2.1 | 24 | |
![]() |
8.1 | 25 | Use the AT command (% style="color:blue" %)**AT+CACERT** (%%)as follows: |
![]() |
2.1 | 26 | |
![]() |
4.2 | 27 | The following certificates are for free input. Please enter the complete certificate when using them. |
![]() |
2.1 | 28 | |
![]() |
4.2 | 29 | [[image:image-20240520093355-2.png]] |
![]() |
2.1 | 30 | |
![]() |
8.2 | 31 | If the configuration succeeds, the message **" successfully configured CA certificate "** is displayed. Otherwise it is considered configuration failure. |
![]() |
2.1 | 32 | |
33 | |||
![]() |
8.2 | 34 | = 3. Configure client certificate = |
![]() |
2.1 | 35 | |
36 | |||
![]() |
8.1 | 37 | Use the AT command (% style="color:blue" %)**AT+CLICERT** (%%)as follows: |
![]() |
4.2 | 38 | |
![]() |
8.1 | 39 | The following certificates are for free input. Please enter the complete certificate when using them. |
![]() |
4.2 | 40 | |
![]() |
8.1 | 41 | [[image:image-20240520095757-3.png]] |
![]() |
4.2 | 42 | |
![]() |
8.2 | 43 | Display** "Successfully configured client certificate."** Configuration successful, otherwise configuration failed. |
![]() |
4.2 | 44 | |
![]() |
8.1 | 45 | |
![]() |
8.2 | 46 | = 4. Configure client private key = |
![]() |
8.1 | 47 | |
48 | |||
49 | Use the AT command (% style="color:blue" %)**AT+CLIKEY**(%%), as shown below. | ||
50 | |||
51 | The following certificates are for free input. Please enter the complete certificate when using them. | ||
52 | |||
53 | [[image:image-20240520095936-5.png]] | ||
54 | |||
![]() |
8.2 | 55 | Display **"Successfully configured client private key."** If the configuration is successful, otherwise it is considered configuration failure. |
![]() |
8.1 | 56 | |
57 | |||
![]() |
8.2 | 58 | = 5. burn the xx-NB-GE.bin file = |
![]() |
8.1 | 59 | |
60 | |||
61 | After the certificate configuration is completed, burn the xx-NB-GE.bin file, which is the official product firmware. | ||
62 | |||
63 | |||
64 | = 6. AT+TLSMOD command = | ||
65 | |||
66 | |||
67 | To use the TLS mode certificate function, users need to configure the (% style="color:blue" %)**AT+TLSMOD**(%%) command. | ||
68 | |||
![]() |
8.2 | 69 | * (% style="color:blue" %)**AT+TLSMOD=1,0**(%%) ~/~/ No authentication |
![]() |
8.1 | 70 | |
![]() |
8.2 | 71 | * (% style="color:blue" %)**AT+TLSMOD=1,1**(%%) ~/~/ Perform server authentication |
![]() |
8.1 | 72 | |
![]() |
8.2 | 73 | * (% style="color:blue" %)**AT+TLSMOD=1,2**(%%) ~/~/ Perform server and client authentication if requested by the remote server |
![]() |
8.1 | 74 | |
75 | |||
76 | |||
77 | |||
78 | |||
![]() |
4.2 | 79 |