AMENDMENT, WAIVER AND EXTENSION TO AMENDED AND RESTATED CERTIFICATE PURCHASE AGREEMENT