I was most grateful to Copa counter personnel at SJO who warned me if I flew to Perú from Costa Rica that I didn't need the yellow fever certificate, but without one I could not board to come home to Costa Rica (yes copa, counter staff in Lima did ask!)