How do you codesign an OS X application for distribution outside the app store?

I've been looking into distributing an OS X application outside the store.

However, whenever I run the installer on another mac, I get gatekeeper describing the application as unsafe.


What can I do I need to do to codesign the applcation for distribution outside the app store? and do I need a third party certificate?


Thank you

How do you codesign an OS X application for distribution outside the app store?
 
 
Q