Relics provided to churches generally come from the Vatican with a certificate of authenticity. There are officials at the Vatican who make sure the relics are the real thing.
If you just get some relic from another source with no certificate, then it might be real or might not be real.