-
Type: Bug
-
Resolution: Duplicate
-
Priority: 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.
- is duplicated by
-
RUBY-3497 Incorrect OCSP Certificate Chain Handling in MongoDB Ruby Driver
- Backlog