Cannot connect to WPA2 WiFis

I have flashed the official ubuntu server image and I’m not able to connect the board to WiFi…is there any known issue with this? I am trying to connect a WPA2 network with wpa supplicant, generating the psk with wpa_passphrase