Skip to content

enhancement - Add support for client certificates when using SSL #28

Open
@alexanderBendo

Description

@alexanderBendo

In the current version SSL connections are supported but there is no way to use client certificates. It can be added with something like this in lib/logstash/outputs/mongodb.rb:

   config :ssl_ca_cert, :validate => :string, :required => false                    
   config :ssl_cert, :validate => :string, :required => false                       
   config :ssl_key, :validate => :string, :required => false           

     conn = Mongo::Client.new(@uri,                                                 
       ssl_ca_cert: @ssl_ca_cert,                                                   
       ssl_cert: @ssl_cert,                                                         
       ssl_key: @ssl_key                                                            
     )          

I can submit either a patch or a pull request if you prefer that.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions