Recreational fishing at the shore does not require a permit, while sea, river, and lake fishing from a boat does require one. You can also buy the permit on the internet (https://www.ribiskekarte.si).
Recreational fishing in the area of Koper is possible at the Rižana river and Lake Vanganel.