Skip to content

Commit

Permalink
Add new AppleWWDRCA Certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
LauLaman committed Nov 22, 2021
1 parent 76ee2f1 commit 8044aa1
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Add support for [groupingIdentifier](https://developer.apple.com/documentation/walletpasses/pass)
- Add support for [suppressStripShine](https://developer.apple.com/documentation/walletpasses/pass)
- Add factory for Compiler
- Bundle with AppleWWDRCAG3.pem

### 1.1.3
- Fix [bug](https://github.com/LauLamanApps/apple-passbook/issues/8) that prevent Expiration Date from being set (thanks to @ercole79)
8 changes: 8 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ $factory = new CompilerFactory();
$compiler = $factory->getCompiler('<PathToCertificate>', '<CertificatePassword>');
```

AppleWWDRA certificate.
---
Included ar 2 AppleWWDRCA certificates:
- AppleWWDRCA.pem - _Expires feb 3 2023_
- AppleWWDRCAG3.pem - _Expires feb 20 2030_

By default AppleWWDRCA is used if you want to use the otherone you can do so by setting its file path as the 3rd option in the `CompilerFactory` or calling `setAppleWWDRCA()` on the `Signer` class for custom implementation

Create Passbook
---
```php
Expand Down
Binary file added certificates/AppleWWDRCAG3.cer
Binary file not shown.
26 changes: 26 additions & 0 deletions certificates/AppleWWDRCAG3.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-----BEGIN CERTIFICATE-----
MIIEUTCCAzmgAwIBAgIQfK9pCiW3Of57m0R6wXjF7jANBgkqhkiG9w0BAQsFADBi
MQswCQYDVQQGEwJVUzETMBEGA1UEChMKQXBwbGUgSW5jLjEmMCQGA1UECxMdQXBw
bGUgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxFjAUBgNVBAMTDUFwcGxlIFJvb3Qg
Q0EwHhcNMjAwMjE5MTgxMzQ3WhcNMzAwMjIwMDAw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Ke3jhQxPYdwyFot30ETK
XXIDMUacrptAGvr04NM++i+MZp+XxFRZ79JI9AeZSWBZGcfdlNHAwWx/eCHvDOs7
bJmCS1JgOLU5gm3sUjFTvg+RTElJdI+mUcuER04ddSduvfnSXPN/wmwLCTbiZOTC
NwMUGdXqapSqqdv+9poIZ4vvK7iqF0mDr8/LvOnP6pVxsLRFoszlh6oKw0E6eVza
UDSdlTs=
-----END CERTIFICATE-----
2 changes: 1 addition & 1 deletion docs/example/BoardingPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
require_once '../../vendor/autoload.php';

$factory = new CompilerFactory();
$compiler = $factory->getCompiler(__DIR__ . '/../../certificates/certificate.p12', '<CertificatePassword>');
$compiler = $factory->getCompiler(__DIR__ . '/../../certificates/certificate.p12', 'ea3eaa8e-d920-46d1-9a35-119c97c16122');

//-- Build pass
$passbook = new BoardingPassbook('gT6zrHkaW');
Expand Down

0 comments on commit 8044aa1

Please sign in to comment.