RIPD-108:  Use a self-signed certificate for peers

I would have used `openssl_ptr` but since the damage will be forever confined to this file, I'm not keen on holding up the pull request.