@Pertti ************
but a tm30 is not the same as a residence certificate. A tm30 is you (or rather the landlord) letting immigration know where you stay. And yes done in person they will put a receipt in your passport for you.
A residence certificate, needed for example to open bank accounts, purchase vehicles etc, is immigration verifying your address and giving you a letter stating that it is your address.