Fix RPC over SSL

Review @vinniefalco, @JoelKatz