I've installed StrongSwan and the network manager helper and I have the options in the applet for VPN, but it only supports certificate configuration, not PSK entry.

I've tried to add the PSK into the /etc/ipsec.secrets file but I don't know what syntax I should use to identify the connection. I simply get "The VPN connection 'VPN Connection 1' failed because of invalid VPN secrets".