On Wed, Apr 24, 2002 at 04:18:49PM -0300, Jay States wrote:
> I am use learning and testing CA's. I have tried to create a
> self-signed CA certificate using the following:
>
> openssl req -new -x509 -days 365 -key sample.key -out sample.crt
>
> and this is the error message that I get. I re-built openssl and
> openssh, but I still get this error. What am I doing wrong?
>
> Using configuration from /etc/ssl/openssl.cnf
> sample.key: No such file or directory
> 64260:error:02001002:system library:fopen:No such file or
> directory:bss_file.c:245:fopen('sample.key','r')
> 64260:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:247:
-key is used to specify the location of an already generated key. You want
to generate a new key (-new) and therefore must use the "-keyout" option
instead.
Best regards,
Lutz
--
Lutz Jaenicke [EMAIL PROTECTED]
http://www.aet.TU-Cottbus.DE/personen/jaenicke/
BTU Cottbus, Allgemeine Elektrotechnik
Universitaetsplatz 3-4, D-03044 Cottbus
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]