I tried proto=WPA2 either with TKIP in the other lines or CCMP (whatever they mean) as suggested by @Juanito but I still could not connect. I also tried to run the WPA_supplicant command with logging enabled but even though a lot of data gets recorded I could not make heads or tails of it.
Regards