title: How to programmatically check if a certificate has been revoked?
body: <p>I'm working on an xcode automated build system. When performing some pre-build validation I would like to check if the specified certificate file has been revoked. I understand that <code>security verify-cert</code> verifies other cert properties but not revokation. How can I check for revokation? </p>
  
  <p>I'm writing the build system in Ruby but am really open to ideas in any language. </p>
  
  <p>I read this answer (<a href="https://stackoverflow.com/questions/2913440/openssl-how-to-check-if-a-certificate-is-revoked-or-not">Openssl - How to check if a certificate is revoked or not</a>) but the link towards the bottom (<a href="https://stackoverflow.com/questions/4389954/does-openssl-automatically-handle-crls-certificate-revocation-lists-now">Does OpenSSL automatically handle CRLs (Certificate Revocation Lists) now?</a>) gets into material that's a bit too involved for my purposes (a user uploading a revoked cert is a far out edge case). Is there a simpler / ruby oriented method for checking for revokation?</p>
  
  <p>Thanks in advance!</p>