[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: openssl problem

Didier Wiroth wrote,

> Hi,
> I'm running openbsd 3.6 with OpenSSL 0.9.7d 17 Mar 2004.
> I tried to setup my own ca. When I try to sign a cert it fails with following error message:
> Using configuration from /etc/ssl/openssl.cnf
> Enter pass phrase for /etc/ssl/private/private-key.pem:
> wrong number of fields on line 1 (looking for field 6, got 1, '' left)
> Looking on google the only info I found was related to try with a zero byte size index.txt database file. This didn't work as I get this error:
> unable to load number from /etc/ssl/mailCA/serial
> error while loading serial number
> 10780:error:0D066096:asn1 encoding routines:a2i_ASN1_INTEGER:short line:/usr/src/lib/libssl/crypto/../src/crypto/asn1/f_int.c:215:
> Has someone an idea what I can test or do to solve the problem?

You should always provide all commands you used.
Try "echo 01 > /etc/ssl/mailCA/serial" and repeat your last command.

Try TinyCA it is simpler and with a nice GUI.


CE94 5F99 BA88 65B1 25B9  8CD1 305A FF6B F8F8 1846
gpg --keyserver x-hkp://pgp.mit.edu --recv-keys F8F81846

*** http://www.openbsd.de/~wbx ***