(DOC-512) adding agent cert regen and editing a file