1如何将证书嵌入式代码中.pdf
ESP32的证书server_root_cert.pem都是自动的嵌入式到固件里去的。
最后通过下面2个数组来获取证书数据和长度。
externconstuint8_tserver_root_cert_pem_start[]asm("_binary_server_root_cert_pem_start");
externconstuint8_tserver_root_cert_pem_end[]asm("_binary_server_root_cert_pem_end");
但是程序中证书是不固定的,那有没有办法将证书用一个数组保存起来呢?
答案是有的。
下载地址
用户评论