before you start, make sure that ANA accepts this certificate.
1. you delegate paperwork to your friend.
you: download this.
http://www.moj.go.jp/content/000099658.pdfwrite it all by yourself. date and signature. scan it and send the scanned file to your friend. (because the site says a copy is OK.)
to make sure, you send the document you write to your friend by air mail.
friend: print the file you sent. (document A)
2. you also send the information by e-mail. a copy of passport (your ID and re-entry pages) and a copy of alien registration card. (documents B)
3. make application document. (document C)
friend : download this and print it.
http://www.moj.go.jp/content/000099657.pdfwrite it by your friend.
write the reason something like that: ANA airline, at xxxx airport in India, refuses me board on their flight, by the reason of that my alien card was already expired, even though I have valid re-entry permit. if I show this certificate, they will board me on their plane.
4. your friend's IDs. (probably necessary)
your friend's passport and zairyu card. (those must be original).
5. go to immigration office near your friend. explain it.
if work well, they will give the document on the same day to your friend. probably no fee.
your friend sends it to you by air-mail.