转自:http://zhoujuxi.blog.163.com/blog/static/56607590201192571745629
Sign the certificate? [y/n]:y
failed to update databaseTXT_DB error number 2
产生的原因是:
This thing happens when certificates share common data. You cannot have two
certificates that look otherwise the same.
方法一:
修改demoCA下 index.txt.attr
将
改为
方法二:
删除demoCA下的index.txt,并再touch下
方法三:
将 common name设置成不同的
我在遇到此类情况的时候采用的第二种方法;
ref: blog.sina.com.cn/s/blog_6151984a0100f0q4.html