Generate certificates automatically with the generate_cert option.

Allows for users to automatically generate self-signed certificates using the generate_certs option.