Page 1 of 1

[SOLVED] "TXT_DB error number 2" on build-key.bat

Posted: Fri Jan 21, 2011 2:55 pm
by wyoelect
Everything builds fine until we hit the client cert. build. Signatures match...and I've tried adding/removing/changing various values with no luck. The client name is a solid alpha string (no dashes, spaces or underscores).
Has anyone seen this pesky critter? Running 2.1.3 on Server 2000......

The return is:

Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
countryName :PRINTABLE:'US'
stateOrProvinceName :PRINTABLE:'**'
localityName :PRINTABLE:'**'
organizationName :PRINTABLE:'**'
commonName :PRINTABLE:'**'
emailAddress :IA5STRING:'**'
Certificate is to be certified until Jan 18 14:37:53 2021 GMT (3650 days)
Sign the certificate? [y/n]:y
failed to update database
TXT_DB error number 2
Could Not Find C:\Program Files\OpenVPN\easy-rsa\keys\*.old

** = commented out local values

Re: "TXT_DB error number 2" on build-key.bat client cert

Posted: Fri Jan 21, 2011 3:18 pm
by gladiatr72
Hello,

The TXT_DB error indicates some kind of duplication in index.txt. If this is your first certificate, index.txt should be empty (I'm assuming this to be so because of the warning indicating index.txt.old doesn't exist).

-Stephen

Re: "TXT_DB error number 2" on build-key.bat client cert

Posted: Fri Jan 21, 2011 3:26 pm
by wyoelect
Thanks Stephen...that was it. There was existing data in that index.txt file. Looks like we are on to the next part of the adventure.
Scott