Add ability for zat to generate a self-signed certificate