Reuse certapp setup/teardown code in both harnesses

The patch also clarifies the prompt, instruct, and confirm methods.