[CDRIVER-2130] Any "ssl" config option in URI should turn on SSL/TLS Created: 18/Apr/17  Updated: 28/Oct/23  Resolved: 19/Apr/17

Status: Closed
Project: C Driver
Component/s: tls, uri
Affects Version/s: 1.7.0
Fix Version/s: 1.7.0

Type: Improvement Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: Hannes Magnusson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to PHPC-1446 Always enable TLS when any TLS option... Closed
related to PHPC-956 Determine how to support TLS options ... Closed
is related to CDRIVER-2004 Add SSL Configuration options to the ... Closed

 Description   

Bug in not-yet-released code from CDRIVER-2004. A URI like this, currently does not turn on SSL:

mongodb://localhost/?sslclientcertificatekeyfile=client.pm

We should update the URI parser to turn on SSL if any of the ssl options are present:

  • sslclientcertificatekeyfile
  • sslcertificateauthorityfile
  • sslallowinvalidcertificates
  • sslallowinvalidhostnames

Explicitly setting ssl=false should disable ssl, even if other ssl related options are set.



 Comments   
Comment by Githook User [ 19/Apr/17 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-2130 Any "ssl" config option in URI should turn on SSL/TLS
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/d9249e4c84df2aefe42fc9092d9766f7c8fea569

Generated at Wed Feb 07 21:14:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.