Add valid pemfile check before saving the downloaded client cert