#!/usr/bin/env ruby -w require 'drb' require 'drb/ssl' here = "drbssl://localhost:3456" class HelloWorld include DRbUndumped def hello(name) "Hello, #{name}." end end config = { :SSLPrivateKey => OpenSSL::PKey::RSA.new(File.read("localhost/localhost_keypair.pem")), :SSLCertificate => OpenSSL::X509::Certificate.new(File.read("localhost/cert_localhost.pem")), } DRb.start_service here, HelloWorld.new, config DRb.thread.join