Added makeCert functions