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

Attributes inherited from TCP

#addresses

Instance Method Summary collapse

Methods inherited from TCP

#send

Constructor Details

#initialize(addresses, tls_options = {}) ⇒ TCPTLS

Supported tls_options:

'no_default_ca' [Boolean] prevents OpenSSL from using the systems CA store.
'tls_version' [Symbol] any of :TLSv1, :TLSv1_1, :TLSv1_2 (default)
'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

13
14
15
16
# File 'lib/gelf/transport/tcp_tls.rb', line 13

def initialize(addresses, tls_options={})
  @tls_options = tls_options
  super(addresses)
end