Residents - apply in person to:
Non-residents - apply for a certificate from the nearest Costa Rican Embassy or Consulate.
You should provide identity card details and your present passport.
A fee is payable.