问题描述
我想通过 mbedtls 学习 https。我尝试为我的 https 服务器生成密钥和证书,但遇到了问题。 gen_key 应用程序工作正常,但 cert_write 无法制作证书。
x509/cert_write selfsign=1 issuer_key=/home/taras/Desktop/mbedtls-2.7.19/programs/x509/keyfile.key
issuer_name=CN=myserver,O=GlobalLogic,C=UA
not_before=202107290000 not_after=202108100000
is_ca=1 max_pathlen=0 output_file=my_crt.crt
。播种随机数生成器...好的
.正在读取序列号...好的
.正在加载颁发者密钥...好的
.设置证书值...失败
! mbedtls_x509write_crt_set_validity 返回 -0x2800 - X509 - 输入无效
pkey/gen_key type=rsa rsa_keysize=4096 文件名=keyfile.key\
我想知道什么会产生“设置证书值...失败”错误。非常感谢您的回答
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)