Class: GELF::Transport::TCPTLS

Inherits:
TCP
  • Object
show all
Defined in:
lib/gelf/transport/tcp_tls.rb

Overview

Provides encryption capabilities for TCP connections

Instance Attribute Summary collapse

Attributes inherited from TCP

#addresses

Instance Method Summary collapse

Methods inherited from TCP

#send

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={})
  @tls_options = 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_errorsObject

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