Post

Replies

Boosts

Views

Activity

Reply to New Website Push Certificate - Signature verification of push package failed.
Hi recently faced this issue and after a long time research, I found that this is happening because of apple's intermediate G4 certificate. The script, provided by apple, to build the push package is not up-to-date according to new G4 intermediate requirements. So here are steps that you anyone could try to solve the issue. Download AppleWWDRCAG4.cer from Certificate Authority page Add this AppleWWDRCAG4.cer to your keychain Create a .pem file using above .cer by running openssl x509 -inform der -in AppleWWDRCAG4.cer -out AppleWWDRCAG4.pem Now open the php script in an editor, which you had downloaded from here Find create_signature function in the script and edit openssl_pkcs7_sign by openssl_pkcs7_sign("$package_dir/manifest.json", $signature_path, $cert_data, $private_key, array(), PKCS7_BINARY | PKCS7_DETACHED, "AppleWWDRCAG4.pem"); By adding .pem file path in the last of openssl_pkcs7_sign function will create correct signature hence correct push package will be generated. Run the php script again and enjoy the safari notification.
May ’22