Lets assume the battery voltage is a constant 12V. It wont be but being a bit higher or lower will not make too much difference.
You need to work out how best to wire them up, in series the total voltage across them will be the sum of each individual LED so if you had 1 it would be 1.7V, two would be 3.4V, three would be 5.1V and so on. I'm not sure how many LEDs you have or need but the simplest circuit would use enough LEDs to give a total close to but not exceeding 80% of 12V (=9.6V). This would suggest you use a series chain of 5 LEDs giving you 8.5V from end to end. If you need more than 5 LEDs, try to keep them in multiples of 5 so the chains are the same length. Each chain needs a series resistor to limit it's current, the value is "total voltage -(number of LEDs in the chain * voltage across each LED)/current you want to flow through them". In figures that's (12 - 8.5)/ 0.02 = 175 Ohms. As this isn't a precision circuit and you are not 100% sure of the LEDs, I suggest you use the nearest standard resistor value which is 180 Ohms. Each chain, including it's series resistor is then wired in parallel and to 12v through your switch.
I should point out that if these are standard 1.7V/20mA LEDs they are probably not high brighteness types!
Brian.