Added endpoint to write certs to etc dir.