Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wrong number of fields with openssl

I am trying to run this command

 openssl ca -config openssl.cnf -extensions usr_cert -days 375 -notext -md sha256 -in keycsr.pem -out keycert.pem

and i get this error

wrong number of fields on line 2 (looking for field 6, got 5, '' left)

I deleted an entry from my index.txt file recently. is it because of that?

like image 815
elenaa Avatar asked Nov 03 '15 15:11

elenaa


Video Answer


1 Answers

Quite likely.

This error usually occurs when spaces or newlines are used instead of tabs in the file.

Make sure that the editor you use does not automatically transform tabs into spaces and remove any extra newline created when you remove an entry.

like image 50
Niklas Lindskog Avatar answered Nov 10 '22 18:11

Niklas Lindskog