lib/iosdeveloper/provisioning_portal.rb in iosdeveloper-0.3.1 vs lib/iosdeveloper/provisioning_portal.rb in iosdeveloper-0.3.2

- old
+ new

@@ -117,10 +117,10 @@ end def get_uuid profile_file p7 = OpenSSL::PKCS7.new(File.read(profile_file)) store = OpenSSL::X509::Store.new - cert = OpenSSL::X509::Certificate.new(File.read("AppleIncRootCertificate.cer")) + cert = OpenSSL::X509::Certificate.new(File.read(File.join(File.dirname(File.expand_path(__FILE__)), '../AppleIncRootCertificate.cer'))) store.add_cert(cert) p7.verify([cert], store) hash = Plist::parse_xml(p7.data) hash["UUID"] end \ No newline at end of file