IIRC there is an example in `toy-rpc`, so this *should* be fairly easy, at least with self-signed certs.