title: In App Purchase (Sandbox) - Receipt Validation Fails Because of curl / SSL
body: <p>I have noticed that my server-side receipt validation code is failing only for the sandbox (the live version of my app in the store works fine, but on Xcode, where I am testing the next version, receipt validation always fails).</p>
  
  <p>I tracked the problem to the <code>php/curl</code> code where I contact the iTunes server (<code>https://sandbox.itunes.apple.com/verifyReceipt</code>), and I get this error from <code>curl</code>:</p>
  
  <pre><code>SSL certificate problem, verify that the CA cert is OK. Details:
  error:14090086:SSL routines:func(144):reason(134)
  </code></pre>
  
  <p>I wonder if this has anything to do with the russian guy and his hack...
  But it only happens with my sandbox code. The live version seems to be working...</p>
  
  <p>Any clues?</p>
  
  <p>Perhaps I should use the 'live' iTunes server for both sandbox and live, as detailed here?
  <a href="https://stackoverflow.com/questions/8186778/in-app-purchase-production-receipt-validation-now-validating-sandbox-purchases">in app purchase, production receipt validation now validating sandbox purchases?</a></p>
  
  <p>(Wasn't aware of this change. Is it still OK?)</p>
  
  <p><strong>EDIT</strong> I modified my sandbox-php code to use the LIVE iTunes server (URL: <code>https://buy.itunes.apple.com/verifyReceipt</code>), and test-user purchases/repurchases are working now. I am still puzzled... Has the sandbox server been deprecated? Does it identify itself with an SSL certificate <em>different</em> than the live environment, which certificate has been revoked?</p>