Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alexanderBendo opened this issue May 20, 2016 · 1 comment
Open

Comments

@alexanderBendo
Copy link

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.

@YakobovLior
Copy link

Hey @alexanderBendo, have you tried this in a real plugin?
I've tried to add this to the regular logstash-output-mongodb plugin but no joy.

Thanks,
Lior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants