Section 9. An owner who has complied with sections 2 through 4, inclusive, which has not resulted in a purchase by the department or which has resulted in a sale pursuant to section 4, may apply to the department for a certificate of compliance by submitting a written request for the certificate in a form and with such documentation as required by the department to establish the owner's compliance to the satisfaction of the department. Upon submission of the written request, the owner shall provide a copy of the request to CEDAC and the chief executive officer of the affected municipality. Upon request by a tenant of the affected publicly-assisted housing, the owner shall provide a copy of the owner's request for a certificate of compliance. The department shall issue the certificate of compliance within 30 days after receipt of the application if it determines that the owner has complied with said sections 2 to 4, inclusive. The certificate of compliance shall be filed with the registry of deeds or the registry district of the land court of the county in which the real property is located within 1 year after the date of issuance.