openssl TXT_DB error number 2

报错

Sign the certificate? [y/n]:y
failed to update database
TXT_DB error number 2
unable to write 'random state'

查阅网络解决方案,原因如下:

This thing happens when certificates share common data. You cannot have two 
certificates that look otherwise the same.

demoCA下 index.txt 已存在相同重复的记录,生成csr时注意区别一下新的证书即可

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。