orlandos-nl / MongoKitten

Native MongoDB driver for Swift, written in Swift

Home Page:https://orlandos.nl/docs/mongokitten/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for custom CA files

e-desouza opened this issue · comments

Is your feature request related to a problem? Please describe.
Support for custom CA files similar to official mongo-swift driver. e.g use-case is to connect to https://www.ibm.com/cloud/hyper-protect-dbaas

mongo-swift syntax for reference:
let sslOpts = TLSOptions(allowInvalidHostnames: true, caFile: URL(string: "cert.pem"), pemFile: nil) let mongodb = try SyncMongoClient("..connectionuri..", options: ClientOptions(serverMonitoring: false, tlsOptions: sslOpts))

Describe the solution you'd like

(from Slack https://openkitten.slack.com/archives/C5KUPE8KY/p1584685504113700)