Class: Fluent::PluginHelper::HttpServer::SSLContextBuilder

Inherits:
Object
  • Object
show all
Includes:
CertOption
Defined in:
lib/fluent/plugin_helper/http_server/ssl_context_builder.rb

Overview

In order not to expose CertOption’s methods unnecessary

Instance Method Summary collapse

Methods included from CertOption

#cert_option_add_extensions, #cert_option_cert_generation_opts_from_conf, #cert_option_certificates_from_file, #cert_option_create_context, #cert_option_generate_ca_pair_self_signed, #cert_option_generate_pair, #cert_option_generate_server_pair_by_ca, #cert_option_generate_server_pair_self_signed, #cert_option_load, #cert_option_server_validate!

Constructor Details

#initialize(log) ⇒ SSLContextBuilder

Returns a new instance of SSLContextBuilder.



26
27
28
# File 'lib/fluent/plugin_helper/http_server/ssl_context_builder.rb', line 26

def initialize(log)
  @log = log
end

Instance Method Details

#build(config) ⇒ Object

Parameters:



31
32
33
# File 'lib/fluent/plugin_helper/http_server/ssl_context_builder.rb', line 31

def build(config)
  cert_option_create_context(config.version, config.insecure, config.ciphers, config)
end