[GODRIVER-491] Failure to establish connection when using only local certificate Created: 16/Jul/18  Updated: 28/Oct/23  Resolved: 03/Aug/18

Status: Closed
Project: Go Driver
Component/s: Options & Configuration
Affects Version/s: 0.0.9
Fix Version/s: 0.0.11

Type: Bug Priority: Major - P3
Reporter: Adam Geiger Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

If you only have a local certificate for an SSL connection and use the SSLOpt:

clientopt.SSLOpt{clientopt.SSLOpt

{    Insecure: true,    Enabled: false,    CaFile:  "/tmp/test.pem", }

 

 

It will fail with the following ""failed to find CERTIFICATE"" due to not having the 

ClientCertificateKeyFile defined.  I will put a PR out in the repository for what I did to fix.



 Comments   
Comment by Githook User [ 03/Aug/18 ]

Author:

{'name': 'Adam Geiger', 'email': 'ageiger@us.ibm.com'}

Message: GODRIVER-491: check if cert file is set
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/d7fee472516138df4533d3e1653a14ff841fe03b

Comment by Adam Geiger [ 18/Jul/18 ]

I added a PR out in the repo to fix this.  Please take a look.  Thanks

Generated at Thu Feb 08 08:34:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.