You don’t want to fully open your Mac to always install applications, so I’m glad that OSXDaily provided multiple workarounds:
Fix the “App can’t be opened because it is from an unidentified developer” Error in Mac OS X.
I needed it to install the nmap binary for OS X.
–jeroen