# File lib/em/connection.rb, line 299
299:     def start_tls args={}
300:       priv_key, cert_chain, verify_peer = args.values_at(:private_key_file, :cert_chain_file, :verify_peer)
301: 
302:       [priv_key, cert_chain].each do |file|
303:         next if file.nil? or file.empty?
304:         raise FileNotFoundException,
305:           "Could not find #{file} for start_tls" unless File.exists? file
306:       end
307: 
308:       EventMachine::set_tls_parms(@signature, priv_key || '', cert_chain || '', verify_peer)
309:       EventMachine::start_tls @signature
310:     end