Switch to using ssl for rpc