LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-19-2016, 10:00 AM   #1
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187
FYI: how to resolve "failed to update database: txt_db error number 2" in OpenSSL or EasyRSA


When you are generating certificates, you might from time to time encounter this:

Code:
failed to update database
TXT_DB error number 2
You'll notice that EasyRSA has generated an empty key-file.

What's the problem and what do you do?

The problem is that you're generating a certificate for a domain-name that has already had a (different) certificate issued. Even if you no longer have a copy of that cert, OpenSSL still remembers that it issued one.

To remedy the problem, go to the conf/index file in the EasyRSA directory. (There will be an index.attr file nearby.) You will find that this is simply a text file. Use a text-editor to locate and remove the line for the domain, then re-save the file.

Of course, you should do this with full understanding of what you are actually doing and what it actually means. That database is there for a reason .. to prevent you from issuing duplicate certificates, and this is probably what you do want. (Therefore, I do not recommend that you follow the admonition to "just turn duplicate-checking off.")

HTH!

Last edited by sundialsvcs; 08-19-2016 at 10:01 AM.
 
  


Reply

Tags
easyrsa, openssl, txt_db


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mumble Error: "Mumble failed to initialize a database in any of the possible locations." Brosef_Stalin Linux - Software 0 07-09-2016 05:52 AM
FC20(kernel version 3.15.5) Update failed with error: "Rpmdb changed underneath us" vvaibhav Linux - Desktop 1 07-22-2014 02:40 PM
Need solution to "failed to fork PTY" and "error creating the child process" problems Gnusboy Linux - Newbie 4 01-02-2010 07:54 AM
does failed using urpmi messed up my "Install Software" / "mandrake update" ??? sirpelidor Mandriva 1 11-02-2003 09:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration