from: http://zhoujuxi.blog.163.com/blog/static/56607590201192571745629
p>
Sign the certificate?[y/n]:y
failed to update database
TXT_DB error number 2
occurs because
p>
This thing happens when certificates share common data. You cannot have two
certificates that look the same.
p>
method 1 :
p>
modify demoCA under index.txt.attr
p>
p>
Java code
- unique_subject = yes span> span> li> ol>
to p>
Java code
- unique_subject = no span> span> li> ol>
method 2 :
p>
delete demoCA under the index. TXT, and then touch
p>
Java code
- rm index. TXT span> span> li>
- span> li>
- touch index. TXT span> li> ol>
method three :
sets the common name to a different
the second method I use when I encounter such situations;
ref: blog.sina.com.cn/s/blog_6151984a0100f0q4.html
p> - span> li>
- rm index. TXT span> span> li>
- unique_subject = no span> span> li> ol>