nwid YourNiceSSID
wpakey WPAkeyYouHave
dhcp
This will allow you to connect to the network YourNiceSSID simply by
sh /etc/netstart iwn0
====== Networkng - Manual ======
Example:
ifconfig iwn0 nwid "YourNiceSSID" wpakey "WPAkeyYouHave"
Is equivalent to the above /etc/hostname.iwn0 example