check if cert.pem exist before creating ssl certificate