Many OpenSSL commands require reading in a private key. While you can often create of a private key in the course of running the command, you may want to have a single key that you use for multiple commands. To create a private key, use the following openssl command:

  > openssl genrsa -des3 -out key.pem 2048
  Generating RSA private key, 2048 bit long modulus
  ......++++++
  .................++++++
  e is 65537 (0x10001)
  Enter pass phrase for key.pem:
  Verifying - Enter pass phrase for key.pem:
  >

Here's an explanation of the command line options: