Cyberstudy
1.4 In progress

Certificate Signing Requests

8 flashcards

Summary

To get a certificate, a subject first generates a key pair and sends the CA a certificate signing request (CSR) that contains the public key and identity details. The private key never leaves the requester. The CA validates the request and returns a signed certificate.

In plain words

To get a certificate, you create a key pair, keep the private key safe, and send the CA a certificate signing request (CSR) containing your public key and details. The CA checks you are who you say, then signs and returns the certificate.

Detailed explanation

  • Certificate signing request (CSR): A message, usually in PKCS #10 format, that carries the requester's public key and subject details and is signed with the matching private key.

Process

  • 1. Generate a key pair: On the server or device that will use the certificate, or in a hardware security module.
  • 2. Create the CSR: Include the subject name, subject alternative names and other details.
  • 3. Submit: Send the CSR to the CA or registration authority.
  • 4. Validate: The CA checks domain control or organization identity according to the certificate type.
  • 5. Issue: The CA signs and returns the certificate, which is installed with the private key.
  • Private key protection: The private key stays with the requester, protected by file permissions, a password or hardware.
  • Automation: The ACME protocol lets servers request and renew certificates automatically, as Let's Encrypt does.

Important terms

taken from the text above
Certificate signing request (CSR)
A message, usually in PKCS #10 format, that carries the requester's public key and subject details and is signed with the matching private key.
Private key protection
The private key stays with the requester, protected by file permissions, a password or hardware.

Examples & real-world scenarios

  • Generating a CSR on a web server for www.example.com.
  • Windows domain auto-enrollment for internal certificates.
  • The CA confirming you control the domain before issuing.

Scenario

A junior admin emails the private key to the CA along with the CSR 'just in case'. That breaks the key's secrecy: the private key must never leave the server. The key should be regenerated.

Common mistakes

  • Sending the private key to the CA. Only the public key goes in the CSR.
  • Forgetting that the CA validates the domain or organization before signing.

Practical skills

  • Describe the steps from key generation to an issued certificate.

What I should remember

  • CSR: Contains the public key and identity details, never the private key.
  • Private key: Generated and kept by the requester.
  • Validation: The CA checks the applicant's identity before signing.
  • ACME: Automates certificate issuance and renewal.