Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
环境 OpenSSL版本:3.6.0
问题现象 将OpenSSL生成的RSA密钥导入psa_import_key函数会反馈错误状态
问题原因及解决办法 OpenSSL 3.6.0 版本在生成密钥时默认为PKCS#8格式,目前MbedTls只支持PKCS#1格式 故在生成.der文件后需另外执行一次格式转换指令:openssl pkcs8 -inform DER -in yourFileNamePkcs8.der -outform DER -out yourFileNamePkcs1.der -nocrypt
补充: 公钥需要基于上述PKCS#1格式的私钥生成,需使用如下指令: openssl rsa -inform DER -in private_key_pkcs1.der -RSAPublicKey_out -outform DER -out public_key_pkcs1.der
快速上手云途开发生态
发帖前请查看
帮助改进和优化YT CONFIG TOOL,有机会抽取YTM32B1ME0 EVB哦...