Safari-Push-Notifications
Safari-Push-Notifications copied to clipboard
Sign Package with AppleWWDCA
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");