Update rpc.rb

Updates to make SSL work with verison 2.0