c - 是否可以在运行时将 Cert.der 和 key.der 写入内部闪存 EEprom 中?我用的是stm32

标签 c ssl certificate stm32 eeprom

我正在尝试将 certifictae 和 key 写入 stm32 的闪存 EEPROM,我知道我们可以写入字符串,但是否有可能在闪存中写入整个证书(.der)。我正在使用 stm32f7 微 Controller 并使用内部 eeprom。我想在运行时添加证书和 key 。我可以向节点写入一个简单的 Json 对象,它工作正常,但我不知道我是否可以在 Mcu 中写入一个 cert.der/key.der。

最佳答案

ST 提供一个 HAL 库来管理 EEPROM 上的 R/W。如果你想使用这个工具,你可以在项目链接上找到所有细节 X-CUBE-EEPROMEEPROM emulation techniques and software for STM32L4 and STM32L4+ Series microcontrollers .

如果您更喜欢自己编写 R/W 函数,您可以在 ST 社区论坛找到一个好的起点:EEPROM read/write .

A little note: when you try to find some reference about STM32 EEPROM inside MCU package, many, many, many time you can found for STM32L* family. Don't worry, the porting to another MCU is very easy.

关于c - 是否可以在运行时将 Cert.der 和 key.der 写入内部闪存 EEprom 中?我用的是stm32,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57108784/

相关文章:

c - 多维数组

android - 在 Android 中使用 websocat 连接到 WSS

.htaccess - 将 https ://[Domain-Name]. com 重定向到 https ://www. [域名]

c - 我的 Checkprime.c 程序有什么问题?

c - 一些函数在较新的编译器中不起作用

c - 对多组求和

.htaccess - 如何强制使用 HTTPS 和 WWW

java - 在 Java 中验证证书会引发异常 - 无法找到指向请求目标的有效证书路径

azure - 为 Azure blob 静态网站启用 HTTPS

certificate - WIF ID 4036 错误 - 故障排除,有想法吗?