I was using riak_security.* for the pb messages only. All the SSL functions are tied to the connection.