1#!/usr/bin/env ruby
2
3require 'drb'
4require 'drb/ssl'
5
6there = ARGV.shift || "drbssl://localhost:3456"
7
8config = Hash.new
9config[:SSLVerifyMode] = OpenSSL::SSL::VERIFY_PEER
10config[:SSLVerifyCallback] = lambda{|ok,x509_store|
11  p [ok, x509_store.error_string]
12  true
13}
14
15DRb.start_service(nil,nil,config)
16h = DRbObject.new(nil, there)
17while line = gets
18  p h.hello(line.chomp)
19end
20