Safari-Push-Notifications icon indicating copy to clipboard operation
Safari-Push-Notifications copied to clipboard

Sign Package with AppleWWDCA

Open justvanbloom opened this issue 6 years ago • 0 comments

https://github.com/surrealroad/Safari-Push-Notifications/blob/8bba7c5600db73b422d561982cf9dcc68aa3a37a/createPushPackage.php#L82

Download AppleWWDRCA.cer

Convert to PEM

openssl x509 -inform der -in AppleWWDRCA.cer -out AppleWWDRCA.pem

and change line to

openssl_pkcs7_sign("$package_dir/manifest.json", $signature_path, $cert_data, $private_key, array(), PKCS7_BINARY | PKCS7_DETACHED,"AppleWWDRCA.pem");

justvanbloom avatar Apr 11 '18 06:04 justvanbloom