我使用PKI生成文件,使用脚本生成ca,cert,key这三份证书,使用的命令是:python AtPKI.py generate_bin -b ./mqtt_key.bin cert ../components/customized_par
titions/raw_data/mqtt_key/mqtt_client.key cert ../components/customized_partitions/raw_data/mqtt_key/oximeter.private.key
剩下的两份证书也是使用同样的命令,生成了mqtt_ca.bin、mqtt_cert.bin、mqtt_key.bin
使用AT指令来查询在闪存中查询用户分区:AT+SYSFLASH?
结果是:
+SYSFLASH:"ble_data",64,1,0x1f000,0x6000
+SYSFLASH:"server_cert",64,2,0x25000,0x2000
+SYSFLASH:"server_key",64,3,0x27000,0x2000
+SYSFLASH:"server_ca",64,4,0x29000,0x2000
+SYSFLASH:"client_cert",64,5,0x2b000,0x2000
+SYSFLASH:"client_key",64,6,0x2d000,0x2000
+SYSFLASH:"client_ca",64,7,0x2f000,0x2000
+SYSFLASH:"factory_param",64,8,0x31000,0x1000
+SYSFLASH:"wpa2_cert",64,9,0x32000,0x2000
+SYSFLASH:"wpa2_key",64,10,0x34000,0x2000
+SYSFLASH:"wpa2_ca",64,11,0x36000,0x2000
+SYSFLASH:"mqtt_cert",64,12,0x38000,0x2000
+SYSFLASH:"mqtt_key",64,13,0x3a000,0x2000
+SYSFLASH:"mqtt_ca",64,14,0x3c000,0x2000
+SYSFLASH:"fatfs",1,129,0x47000,0x19000