Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-3498

Driver incorrectly handles the OCSP certificate chain by using the last certificate in the chain as the issuer.

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Security
    • None
    • Ruby Drivers

      Copied from https://github.com/mongodb/mongo-ruby-driver/pull/2876

      Summary:
      The MongoDB Ruby driver incorrectly handles the OCSP certificate chain by using the last certificate in the chain as the issuer. The correct behavior should be to use the certificate directly after the leaf certificate. This issue causes OCSP verification to fail when the chain contains multiple certificates.

      Details:
      In the current implementation of the MongoDB Ruby driver, the OCSP verification uses the last certificate in the peer_cert_chain as the issuer certificate. However, according to the correct practice and as implemented in theĀ official MongoDB Go driver, the certificate directly after the leaf certificate should be used as the issuer.

            Assignee:
            Unassigned Unassigned
            Reporter:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: