SymmetricInfinity / push_package

A gem for creating Safari push notification push packages.
symmetricinfinity.com/push_package
MIT License
31 stars 14 forks source link

Including Intermediate Certificate to sign when generating push package #6

Closed deepakc closed 8 years ago

deepakc commented 8 years ago

Is there an option to pass the intermediate certificate for signing?

package = PushPackage.new(website_params, iconset_path, certificate, 'optional cert password')

Or if i have the intermediate certificate in my p12 will that all be used while signing?

adamvduke commented 8 years ago

@deepakc I'm not familiar with using the intermediate certificate for signing. Pull requests are welcomed.

deepakc commented 8 years ago

@adamvduke Thanks! let me take a look - And this is required because of this Apple's announcement that their intermediate certs are expiring - https://developer.apple.com/support/certificates/expiration/index.html

adamvduke commented 8 years ago

Hi @deepakc, support for intermediates was added by @kyle30312 and is available in rubygems as version 0.2.0.

kyle30312 commented 8 years ago

More background:

To summarize the certificate chain for verifying a push package: (A) Apple Root CA - expires 2/9/2035 (see Keychain Access > System Roots > Certificates) (B) Apple Worldwide Developer Relations Certification Authority - expires 2/14/2016 (old one), 2/7/2023 (new one) (C) Website Push ID: web.com.example.www - this is the certificate issued by Apple for your site, typically expires after one year.