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

Incorrect OCSP Certificate Chain Handling in MongoDB Ruby Driver

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

      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:
            ray.su@shoplineapp.com Ray Su
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: