Module: Fluent::Plugin::SslCheck::SslCommon
- Included in:
- FileChecker, Fluent::Plugin::SslCheckInput::SslClient
- Defined in:
- lib/fluent/plugin/ssl_check/ssl_common.rb
Instance Method Summary collapse
Instance Method Details
#ssl_store(ca_path: nil, ca_file: nil) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/fluent/plugin/ssl_check/ssl_common.rb', line 9 def ssl_store(ca_path: nil, ca_file: nil) OpenSSL::X509::Store.new.tap do |store| store.set_default_paths store.add_path(ca_path) if ca_path store.add_file(ca_file) if ca_file end end |