Creating Key in OpenSSL

Rick Stevens rstevens at vitalstream.com
Thu Sep 1 16:39:13 UTC 2005


Rodrigo Faria Tavares wrote:
> Hello,
> 
> 
> Recently, I installed Apache 1.3.33 integrated the last version of 
> openssl and modssl.
> Both was intalled with com success.
> 
> But, When I try to create the key happen the error below :
> 
> [root at faria ssl.crt]# openssl rsa -in server.key-Csenha -out server.key
> Error opening Private Key server.key-Csenha
> 11193:error:02001002:system library:fopen:No such file or
> directory:bss_file.c:349:fopen('server.key-Csenha','r')
> 11193:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:351:
> unable to load Private Key
> 
> How I can o resolve it ?

The correct way to generate an RSA key for openSSL is to use the
"genrsa" command:

	# openssl genrsa -out server.key

The "rsa" command does generalized RSA management, but doesn't generate
keys.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-  Memory is the second thing to go, but I can't remember the first! -
----------------------------------------------------------------------




More information about the Redhat-install-list mailing list