Is an unrefrigerated canned ham safe to eat?
If the words "Keep Refrigerated" are on the label, and the ham was kept on the shelf for weeks or months, the only answer I can responsibly give is that you should call poison control: 1-800-222-1222 in the USA. If you're not in the USA, Google "Poison Control (your location)" or call a medical professional. Since you've already eaten it and we can't assure you that it was safe, it has become a medical issue - not a culinary one. We are not qualified to answer medical questions.




  Canned hams labeled “keep refrigerated” require
  refrigeration and, unopened, will keep 6 to 9 months in
  the refrigerator. Processed at a time and temperature sufficient to kill infectious organisms (including Trichinae); however the ham is not sterilized so spoilage bacteria may grow. - USDA