Module: SSLGate::SSLRawAddOn

Defined in:
lib/ssl_gate/raw_ssl.rb

Instance Method Summary collapse

Instance Method Details

#post_initObject



3
4
5
6
7
8
9
# File 'lib/ssl_gate/raw_ssl.rb', line 3

def post_init
  super
  start_tls private_key_file: @config[:private_key_file],
            cert_chain_file: @config[:cert_chain_file]
  # verify_peer: true,
  # fail_if_no_peer_cert: true
end

#ssl_handshake_completedObject

def ssl_verify_peer(cert)

  true
end


15
16
17
# File 'lib/ssl_gate/raw_ssl.rb', line 15

def ssl_handshake_completed
  $server_handshake_completed = true
end