Hello Apple Support,
While attempting to staple a notarization ticket for our signed installer package, the stapler command fails with Error 65. Upon investigation, we found that connections to oscdn.apple.com present an SSL certificate issued to a248.e.akamai.net, which does not include oscdn.apple.com in its Subject Alternative Name (SAN).
This mismatch prevents our macOS environment from validating tickets and completing the stapling process.
Steps tried:
- Verified notarization status (Accepted).
- DNS flushed, tried different DNS (8.8.8.8, 1.1.1.1).
- curl to oscdn.apple.com consistently fails with SSL error 60.
Please advise on resolving this certificate mismatch.
also when I try to run the stapler command with my pkg
"xcrun stapler staple/Users/mactest/Desktop/IPMPlus_Macos_Installer.signed.pkg"
getting the output like :-
Processing: /Users/mactest/Desktop/IPMPlus_Macos_Installer.signed.pkg
Could not validate ticket for /Users/mac-test/Desktop/IPMPlus_Macos_Installer.signed.pkg
The staple and validate action failed! Error 65.
please help
Thank you.
I suspect that there’s something wonky in your network environment. If stapler
were failing consistently in this way, DevForums would be flooded with complaints.
Consider the stapler
log that I’ve attached below. As you can see, it doesn’t access oscdn.apple.com
but rather api.apple-cloudkit.com
. And pointing curl
at that works as expected:
% curl -D /dev/stderr https://api.apple-cloudkit.com
HTTP/1.1 400 Bad Request
…
What do you see if you enable verbose mode in stapler
?
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"