Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Latest commit

 

History

History
32 lines (22 loc) · 1.25 KB

applecerts.rst

File metadata and controls

32 lines (22 loc) · 1.25 KB

Apple certificates

You probably don't need to change this file, not for a long time.

The applecerts.pem file can be constructed by these steps. In theory you can export them from Keychain Access, too, but here's a procedure that doesn't involve an Apple machine. This worked for us in June 2016:

$ curl 'https://www.apple.com/appleca/AppleIncRootCertificate.cer' > AppleIncRootCertificate.cer
$ curl 'https://developer.apple.com/certificationauthority/AppleWWDRCA.cer' > AppleWWDRCA.cer
$ openssl x509 -inform der -in AppleIncRootCertificate.cer -outform pem -out AppleIncRootCertificate.pem
$ openssl x509 -inform der -in AppleWWDRCA.cer -outform pem -out AppleWWDRCA.pem
$ cat AppleWWDRCA.pem AppleIncRootCertificate.pem > applecerts.pem

Here's a conceptual explanation of what we're doing:

Download the following certs from Apple's Certificate Authority Page

  • Apple Inc. Root Certificate
  • Worldwide Developer Relations Certificate

Then convert these to PEM format.

Then, concatenate them together. This file can now serve as the 'Apple certificate' for code signing.