title: Error, "The timestamp service is not available." when using codesign on Mac OS X 10.8
body: <p>I'm signing an app bundle using an Apple Developer ID certificate. I need to sign using the  the command line tool since our build is automated and runs from our toolchain. 90% of the time it works fine with this command:</p>
  
  <pre><code>ws5:bin nick$ codesign -fs "Developer ID Application: &lt;my name here&gt;" MyApp.app
  ws5:bin nick$ spctl --assess MyApp.app
  ws5:bin nick$ 
  </code></pre>
  
  <p><em>Note:</em> MyApp.app is not my real application name, and <code>&lt;my name here&gt;</code> is not the actual value.</p>
  
  <p>So, maybe 1 in 10 times it intermittently fails with this error:</p>
  
  <pre><code>MyApp.app: The timestamp service is not available.
  </code></pre>
  
  <p>I've verified the .app gets through the quarantine mechanism with <code>spctl --assess</code> and by zipping it and downloading the signed file -- so please don't say "you're doing it wrong, use Xcode". I know that Apple doesn't "officially" recommend using <code>codesign</code> for developer ID certificates (according to a <a href="https://developer.apple.com/videos/wwdc/2012/?id=702" rel="noreferrer">WWDC video</a>) but we need to use it for automation and because our app is a strange combination of gcc and Qt build output.</p>
  
  <p>Is the best strategy around this error to just retry until it works again? That's all I can think to do.</p>