JA
header image

枝折 - bookmark

Notes on SSL/TLS

PKI

CREATED: 2024 / 03 / 02 Sat

UPDATED: 2024 / 03 / 03 Sun

Notes on SSL/TLS

SSL/TLS Setup Process

1. The organization or individual implementing SSL/TLS creates a private key and public key pair.
2. Use the private key to create a CSR (Certificate Signing Request).
   1. When creating the CSR, specify a hash algorithm and sign with the private key.
      1. SHA-2 is commonly used as the hash algorithm. \*1
      2. The signing algorithm used here appears as the Certificate's Signature Algorithm.
      3. The resulting hash value likely becomes the Certificate's Signature Value.
      4. This allows the server to verify that the certificate itself has not been swapped out.
      5. However, if the private key is stolen, an attacker could create a valid certificate and perform a substitution attack.
   2. The CSR must include the public key and information about the applicant organization or individual.
      1. The Certificate's Subject records the owner of this certificate.
3. Submit the CSR to a CA.
   1. The CA receives the CSR, verifies its legitimacy, and then signs it with the CA's own private key.
      1. The signing CA is recorded in the Certificate's Issuer field.
   2. There are three types of CSR validation:
      1. DV (Domain Validation)
         1. Verifies domain legitimacy (whether the applicant controls the domain), but does not verify the applicant as an individual or organization.
      2. OV (Organization Validation)
         1. Verifies domain legitimacy as well as the applicant's identity as an individual or organization.
      3. EV (Extended Validation)
         1. Performs even more detailed verification than OV.
4. The CA signs the CSR and creates a CRT.
   1. The CRT is sent to the owner, who then installs it on their server.

Appendix