The draw has taken place in Nyon for the preliminary round of the UEFA Champions League.
August 8 semi finals behind closed doors
Champions of San Marino v champions of Northern Ireland
Champions of Kosovo v champions of Andorra
August 11 final behind closed doors
Kosovo / Andorra champions v San Marino / Northern Ireland champions
The winners of the August 11 game will progress to the first round proper, the draw for which will have taken place on August 9.
Names of the clubs involved will be revealed on August 3.
Linfield have played opponents from San Marino once before - defeating La Fiorita 1-0 at Windsor Park and drawing 0-0 in San Marino three years ago.