6 here = ARGV.shift || "drbssl://localhost:3456"
17 config[:verbose] = true
19 data = open("sample.key"){|io| io.read }
20 config[:SSLPrivateKey] = OpenSSL::PKey::RSA.new(data)
21 data = open("sample.crt"){|io| io.read }
22 config[:SSLCertificate] = OpenSSL::X509::Certificate.new(data)
24 $stderr.puts "Switching to use self-signed certificate"
25 config[:SSLCertName] =
26 [ ["C","JP"], ["O","Foo.DRuby.Org"], ["CN", "Sample"] ]
29 DRb.start_service(here, HelloWorld.new, config)