Added ability to generate certificates