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