Hi Luis,
What firmware version are you running? In 5.2.x, wpa2 (AES) is the default, so you really only need to add the name of the wireless interface, your SSID, and your password.
(this is the default code for an out-of-the-box 5.2.x, with the SSID line changed).
config wireless-controller vap
edit "wifi"
set vdom "root"
set ssid "SSIDNameHere"
set passphrase ENC mxdSX1C9IVVKmGMBqV+k3C5cQXT6Bzfh+NtWP6pBG6zwEQOnSoangyqfSJdBKVqK9apt9ymAObv3Uy1TuRa0JkuXCBI2bULyDXVdCjVMwuuiXWky8XXCq5OrM7UBR1lh/iKb3zUhFYEibZis2m0ZsjN/Y+fD7gssQo0XbQMJtkAjzC9BMVKXP+xgyl597ZQwRe9cdg==
next
end
In earlier versions you would need to set additional lines such as;
set security wpa2-only-personal
set encrypt AES
You can type your passphrase in the CLi in plaintext, omitting the ENC, and it will encrypt it for you afterwards
e.g. set passphrase ThisIsMyUnsecureWirelessPassphrase
it will save that line as
set passphrase ENC mxdSX1bnrUCoHgRPexacifVpWDwrYqmCcPj+B69rYJuCwvgsG6dMAzRI+YEeh6sgzIGoLIKAkjYdgTerW8Q7yaehQc0/PUehFMKrB4pXSQubvv49Q+IWZiYqNmLvrjGchxeKSB1yty6/MnqVnprjfaQ1FCAxzzqf6h+1l16VsfiSJxf1xh4k0CeuhuwZgbp/gviqRQ==