[GODRIVER-778] support for sslAllowInvalidCertificates and sslAllowInvalidHostnames Created: 22/Jan/19  Updated: 11/Sep/19  Resolved: 25/Mar/19

Status: Closed
Project: Go Driver
Component/s: Connections
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Minor - P4
Reporter: Carl-Fredrik Grimberg Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Does the mongo-go-driver support the flags `sslAllowInvalidCertificates` and `sslAllowInvalidHostnames`? I can't find it in the documentation nor the source code.



 Comments   
Comment by Carl-Fredrik Grimberg [ 09/Mar/19 ]

Alright.

Comment by Kristofer Brandow (Inactive) [ 04/Mar/19 ]

Hi grimberg,

Since we cannot separate the two in Go, we support the sslInsecure URI option. Setting this should accomplish what attempting to do.

--Kris

Comment by Carl-Fredrik Grimberg [ 30/Jan/19 ]

@Divjot Arora Nope. That didn't work. I got `I NETWORK [conn22427] Error receiving request from client: SSLHandshakeFailed: The server is configured to only allow SSL connections. Ending connection from 10.120.210.6:53321 (connection id: 22427)`

Comment by Divjot Arora (Inactive) [ 29/Jan/19 ]

grimberg Would using SetSSL as a client option accomplish what you're looking for? You could set the Insecure field in the SSLOpt struct to true when constructing a new client.

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