That's an interesting question.
The IRS doesn't have to certify anything. However, there's an option to request certification of a copy of your tax return, using Form 4506. You ask for the certification by checking the checkbox on line 6.
The IRS will then provide you with Form 2866, which certifies the correctness of the copy of the tax return you requested. You then need to submit the form to the US State Department to be apostilled. The IRS is a federal agency, states will not apostille signatures of federal officials - only the US State Department can do that.
I suggest to write a letter explaining what you need, and emphasizing that you'd need the State Department certification, and attach it to Form 4506 you'll be submitting. This is because generally Form 2866 is prepared in the IRS field office holding the records, but to be certified by the State Department, it has to be first certified by IRS headquarters. This is a special process for the certifications requiring apostilles and is not part of a regular process to issue Form 2866.
You can see the IRS procedure on certifying documents here.