Updated generate_certificates with more useful info