>_ IzzyLab

Topic breakdown

A self-signed certificate is a degenerate case of PKI: the issuer and the subject are the same entity — you vouch for your own public key, so there's no chain of trust to an external CA and systems don't trust such a cert by default. The openssl req utility can both generate an RSA key and issue a ready-made certificate in a single pass (the -x509 flag), skipping the separate CSR stage. The key parameters are the lifetime in days, the absence of a passphrase on the key, and the subject (CN), and note that the path for the key and the path for the certificate are set by two different flags — they're easy to mix up.

What's checked

  1. Certificate is valid
  2. CN is test.local
  3. key.pem matches the certificate
  4. the certificate is self-signed
  5. valid for 365 days

What it looks like