>_ IzzyLab

Topic breakdown

A private key is the foundation of asymmetric cryptography: the public key is derived from it, but the private key cannot be recovered back. For RSA it holds a pair of large primes and the secret exponent; it is generated by a dedicated openssl subcommand where the length in bits (2048 is a sensible minimum) is given as an argument and the output path via the -out flag. Without a password means without encryption options (-aes256 and the like), otherwise the key ends up encrypted and requires a passphrase. The result is a secret in PEM format; the file permissions are kept strict.

What's checked

  1. RSA key is valid
  2. key length is 2048 bits

What it looks like