genrsa(1ssl)


NAME

   genrsa - generate an RSA private key

SYNOPSIS

   openssl genrsa [-out filename] [-passout arg] [-aes128] [-aes192]
   [-aes256] [-camellia128] [-camellia192] [-camellia256] [-des] [-des3]
   [-idea] [-f4] [-3] [-rand file(s)] [-engine id] [numbits]

DESCRIPTION

   The genrsa command generates an RSA private key.

OPTIONS

   -out filename
       the output filename. If this argument is not specified then
       standard output is used.

   -passout arg
       the output file password source. For more information about the
       format of arg see the PASS PHRASE ARGUMENTS section in openssl(1).

   -aes128|-aes192|-aes256|-camellia128|-camellia192|-camellia256|-des|-des3|-idea
       These options encrypt the private key with specified cipher before
       outputting it. If none of these options is specified no encryption
       is used. If encryption is used a pass phrase is prompted for if it
       is not supplied via the -passout argument.

   -F4|-3
       the public exponent to use, either 65537 or 3. The default is
       65537.

   -rand file(s)
       a file or files containing random data used to seed the random
       number generator, or an EGD socket (see RAND_egd(3)).  Multiple
       files can be specified separated by a OS-dependent character.  The
       separator is ; for MS-Windows, , for OpenVMS, and : for all others.

   -engine id
       specifying an engine (by its unique id string) will cause genrsa to
       attempt to obtain a functional reference to the specified engine,
       thus initialising it if needed. The engine will then be set as the
       default for all available algorithms.

   numbits
       the size of the private key to generate in bits. This must be the
       last option specified. The default is 512.

NOTES

   RSA private key generation essentially involves the generation of two
   prime numbers. When generating a private key various symbols will be
   output to indicate the progress of the generation. A . represents each
   number which has passed an initial sieve test, + means a number has
   passed a single round of the Miller-Rabin primality test. A newline
   means that the number has passed all the prime tests (the actual number
   depends on the key size).

   Because key generation is a random process the time taken to generate a
   key may vary somewhat.

BUGS

   A quirk of the prime generation algorithm is that it cannot generate
   small primes. Therefore the number of bits should not be less that 64.
   For typical private keys this will not matter because for security
   reasons they will be much larger (typically 1024 bits).

SEE ALSO

   gendsa(1)


More Linux Commands

manpages/sasl_getpath_t.3.html
sasl_getpath_t(3) - The SASL callback to indicate location o
sasl_getpath_t is used if the application wishes to use a different location for the SASL mechanism drivers (the shared library files). If this callback is not

manpages/xsm.1.html
xsm(1) - X Session Manager (Commands - Linux manual page)...
xsm is a session manager. A session is a group of applications, each of which has a particular state. xsm allows you to create arbitrary sessions - for example,

manpages/gluNurbsCallback.3gl.html
gluNurbsCallback(3gl) - define a callback for a NURBS object
gluNurbsCallback is used to define a callback to be used by a NURBS object. If the specified callback is already defined, then it is replaced. If CallBackFunc i

manpages/exit_group.2.html
exit_group(2) - exit all threads in a process (Man Page)....
This system call is equivalent to exit(2) except that it terminates not only the calling thread, but all threads in the calling processs thread group. RETURN VA

manpages/XProcessInternalConnection.3.html
XProcessInternalConnection(3) - handle Xlib internal connect
The XAddConnectionWatch function registers a procedure to be called each time Xlib opens or closes an internal connection for the specified display. The procedu

manpages/shm_unlink.3.html
shm_unlink(3) - Create/open or unlink POSIX shared memory ob
shm_open() creates and opens a new, or opens an existing, POSIX shared memory object. A POSIX shared memory object is in effect a handle which can be used by un

manpages/req.1ssl.html
req(1ssl) - PKCS#10 certificate request and certificate gene
The req command primarily creates and processes certificate requests in PKCS#10 format. It can additionally create self signed certificates for use as root CAs

manpages/XAllocWMHints.3.html
XAllocWMHints(3) - allocate window manager hints structure a
XAllocWMHints.3 - The XAllocWMHints function allocates and returns a pointer to a XWMHints structure. Note that all fields in the XWMHints structure are initial

manpages/SDL_JoystickOpen.3.html
SDL_JoystickOpen(3) - Opens a joystick for use (Man Page)...
Opens a joystick for use within SDL. The index refers to the Nth joystick in the system. A joystick must be opened before it game be used. RETURN VALUE Returns

manpages/XkbChangeIndicators.3.html
XkbChangeIndicators(3) - Changes indicator maps or state wit
The XkbIndicatorChangesRec identifies small modifications to the indicator map. Use it with the function XkbChangeIndicators to reduce the amount of traffic sen

manpages/outw_p.2.html
outw_p(2) - port I/O (System calls - Linux man page)........
This family of functions is used to do low-level port input and output. The out* functions do port output, the in* functions do port input; the b-suffix functio

manpages/TAP::Parser::SourceHandler::Perl.3pm.html
TAP::Parser::SourceHandler::Perl(3pm) - Stream TAP from a Pe
This is a Perl TAP::Parser::SourceHandler - it has 2 jobs: 1. Figure out if the TAP::Parser::Source its given is actually a Perl script (can_handle). 2. Creates





We can't live, work or learn in freedom unless the software we use is free.