自業自得 (じごうじとく): paying for one's mistakes; getting one's just deserts; suffering the consequences (of one's own actions)

paying for one's mistakes; getting one's just deserts; suffering the consequences (of one's own actions)

Consequences you brought on yourself. Colder than 身から出た錆 and closer to "you asked for it".

The same saying in Chinese: 自食其果