Class: GELF::Transport::TCPTLS
Overview
Provides encryption capabilities for TCP connections
Instance Attribute Summary collapse
-
#rescue_ssl_errors ⇒ Object
Supported tls_options: ‘no_default_ca’ [Boolean] prevents OpenSSL from using the systems CA store.
Attributes inherited from TCP
Instance Method Summary collapse
-
#initialize(addresses, tls_options = {}) ⇒ TCPTLS
constructor
A new instance of TCPTLS.
Methods inherited from TCP
Constructor Details
#initialize(addresses, tls_options = {}) ⇒ TCPTLS
Returns a new instance of TCPTLS.
19 20 21 22 23 24 |
# File 'lib/gelf/transport/tcp_tls.rb', line 19 def initialize(addresses, ={}) @tls_options = @rescue_ssl_errors = @tls_options['rescue_ssl_errors'] @rescue_ssl_errors if @rescue_ssl_errors.nil? super(addresses) end |
Instance Attribute Details
#rescue_ssl_errors ⇒ Object
Supported tls_options:
'no_default_ca' [Boolean] prevents OpenSSL from using the systems CA store.
'version' [Symbol] any of :TLSv1, :TLSv1_1, :TLSv1_2 (default)
'ca' [String] the path to a custom CA store
'cert' [String, IO] the client certificate file
'key' [String, IO] the key for the client certificate
'all_ciphers' [Boolean] allows any ciphers to be used, may be insecure
'rescue_ssl_errors' [Boolean] similar to rescue_network_errors in notifier.rb, allows SSL exceptions to be raised
'no_verify' [Boolean] disable peer verification
17 18 19 |
# File 'lib/gelf/transport/tcp_tls.rb', line 17 def rescue_ssl_errors @rescue_ssl_errors end |