title: OSX: Code-sign executable to avoid firewall warning dialog
body: <p>OSX El Capitan and Go 1.6</p>
  
  <p>What I want is simpler than it sounds from the title.</p>
  
  <p>The OSX firewall disallows any unknown application from accepting connections. When any such program starts, the user is presented with a dialog whether or not the said executable should be permitted to receive connections. The user's choice is then remembered. </p>
  
  <p>The above works fine when for example one develops with node where the actual executable is a single binary and the user just needs to allow/deny it once.</p>
  
  <p>When developing in go (and any other compiled language) the created executable is different every time. Which means I get the dialog every single time I start my server. </p>
  
  <p>One way to avoid this dialog is to sign the executable with a self-signed certificate one generates in OSX itself. Once we have the certificate we simply sign the executable and allow/deny it once. Code signatures are always remembered even if the executable binary changes.</p>
  
  <p><strong>So, my question is</strong>:</p>
  
  <p>Is there a way to make <code>go</code> run the signing command before running the compiled binary?</p>