Hi
It looks like you didn't create the key-pair.
you can create it with:
openssl genrsa -des3 -out sample.key 2048
It will generate a RSA key-pair with 2048 bits modulus, with a symmetric
algorithm to encrypt the key-pair.
Bye
Jay States ha escrito:
> 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:
> ns2# openssl req -new -x509 -days 365 -key
> /usr/local/apache2/cert/sample.key -out sample.crt
>
> Thanks
> J
>
> ______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> Development Mailing List [EMAIL PROTECTED]
> Automated List Manager [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]