quadion/iOSValidation — Issue #1: Does not work on linux
Author: cmoscardini
Created: 2012-01-19 02:38:26+00:00
State: open

This script is great. Thanks. To get this to work on an ubuntu box, I had to add apple's root certificate to the store like this:

apple_cert = OpenSSL::X509::Certificate.new(File.read(File.join('certs', 'AppleIncRootCertificate.cer')))
store.add_cert(apple_cert)

You can get apple's cert here:

http://www.apple.com/certificateauthority/