How to fetch an AirPort/Wi-Fi password using /usr/bin/security
I got my password with

security find-generic-password -D "AirPort network password" -a YourSSIDhere -g


Main difference is -a SSID. I found that in which field it was stored by letting security take a dump:

security dump-keychain