Contrary to popular belief, handguns are legal in Northern Ireland, even though they are part of the UK. This is due to the Firearms (Northern Ireland) Order.
I believe you can even carry it, naturally, within the borders of Northern Ireland without a permit. You do need some type of certificate to purchase a handgun (pretty sure).