-   Linux - Server (
-   -   OpenSSL generate cert error (

funkflex2004 11-11-2009 08:22 AM

OpenSSL generate cert error
I'm attempting to generate certificate using easy-rsa that comes with OpenVPN.
I get this error:
"Wrong number of fields on line 27 (looking for field 6, got 1, '' left)"

I already have 27 verified entries in the index.txt file as defined in openssl.cnf and the serial# in the serial file is in sequence to the serial column in the index.txt

I've googled and seen similar error but regarding 1 line only:
"Wrong number of fields on line 1 (looking for field 6, got 1, '' left)"
the solution to that is to make sure that the index.txt file is truly empty.

Obviously in my case I have 27 entries to keep.

Anyone for solutions?

I've made sure there's no "new line feed" at the end of the index.txt file

funkflex2004 11-12-2009 01:02 PM

Found the problem...

white-spaces were used between fields instead of tab on the offending line.

Silly me.. :o

All times are GMT -5. The time now is 10:28 AM.