Ari Weinberg
06/22/2023, 6:27 PMThe binary is not signed with a valid Developer ID certificate
for the orbit.pkg
. Has anyone else run into this?Kathy Satterlee
06/22/2023, 7:40 PMsecurity find-identity -v
to verify the existence of the local installer certificate?Ari Weinberg
06/22/2023, 7:40 PMAri Weinberg
06/22/2023, 7:41 PMAri Weinberg
06/22/2023, 7:41 PMroberto
06/22/2023, 8:09 PMfleetctl
's flags --notarize
and --sign-identity
? or other method?Ari Weinberg
06/22/2023, 8:09 PMAri Weinberg
06/22/2023, 8:09 PMroberto
06/22/2023, 8:16 PMAri Weinberg
06/22/2023, 8:20 PMAC_USERNAME=$AC_USERNAME AC_PASSWORD=$AC_PASSWORD ./fleetctl package --type=pkg --fleet-url=<https://my_fleetserver.com> --enroll-secret=secret --sign-identity ID_FOR_DEVELOPER_ID_INSTALLER_CERT --orbit-channel=1.5.0 --verbose --notarize
Ari Weinberg
06/22/2023, 8:22 PM{
"logFormatVersion": 1,
"jobId": "unique-id",
"status": "Invalid",
"statusSummary": "Archive contains critical validation errors",
"statusCode": 4000,
"archiveFilename": "orbit.pkg",
"uploadDate": "2023-06-22T20:18:57Z",
"sha256": "c1413405ebf682767cebf52c0e59c6b514837f21193996008d8d1eb478ca8e44",
"ticketContents": null,
"issues": [
{
"severity": "error",
"code": null,
"path": "orbit.pkg",
"message": "The binary is not signed with a valid Developer ID certificate.",
"docUrl": "<https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues#3087721>",
"architecture": null
}
]
}
Ari Weinberg
06/22/2023, 8:22 PMroberto
06/22/2023, 8:33 PMfleetctl
generates is called fleet-osquery.pkg
, not orbit.pkg
🤔 , so it makes me wonder if something else is going on
could you please share your fleetctl --version
?Ari Weinberg
06/22/2023, 8:33 PMAri Weinberg
06/22/2023, 8:33 PMAri Weinberg
06/22/2023, 8:34 PMfleet-osquery.pkg
is invalid, not orbit.pkg
Ari Weinberg
06/22/2023, 8:34 PMroberto
06/22/2023, 8:35 PMAri Weinberg
06/22/2023, 9:31 PMAri Weinberg
06/22/2023, 9:31 PMroberto
06/22/2023, 10:52 PMorbit.pkg
file, it's a temporary file we use, later it gets renamed to fleet-osquery.pkg
, so nothing is wrong there.
~/fleet $ fleetctl package --type=pkg --fleet-desktop --fleet-url=<https://dogfood.fleetdm.com> --enroll-secret=REDACTED --sign-identity REDACTED --notarize
Generating your osquery installer...
Submitting file for notarization...
Submitted. Request UUID: ce66b4bd-776e-440b-abf7-55e061e2b854
Waiting for results from Apple. This can take minutes to hours.
Status: in progress
Status: success
Success! You generated an osquery installer at /Users/roperzh/fleet/fleet-osquery.pkg
To add this device to Fleet, double-click to open your installer.
To add other devices to Fleet, distribute this installer using Chef, Ansible, Jamf, or Puppet. Learn how: <https://fleetdm.com/docs/using-fleet/adding-hosts>
some thoughts:
1. this is a long shot, but I had to go to the apple developer portal and accept the new terms and conditions, could you double check if you need to do the same?
2. do you know the app Suspicious Package? can you generate a package without --notarize
and open it in the app? do you see any warnings?
3. could you try manually signing and notarizing the package?
a. run the fleetctl
command as usual but without the --notarize
and --sign-identity
flags
b. sign the package with: productsign --sign "Developer ID Installer: $DEVID_INFO" fleet-osquery.pkg fleet-osquery-signed.pkg
c. notarize with: xcrun altool --notarize-app --username $AC_USERNAME --password $AC_PASSWORD --file fleet-osquery-signed.pkg --primary-bundle-id com.fleetdm.orbit
Ari Weinberg
06/22/2023, 10:53 PMAri Weinberg
06/22/2023, 10:54 PMroberto
06/22/2023, 10:57 PMpkg
files (screenshot attached of what I see for the fleet-osquery.pkg
file I just generated)Ari Weinberg
06/22/2023, 10:59 PMAri Weinberg
06/22/2023, 11:00 PMroberto
06/22/2023, 11:01 PMroberto
06/22/2023, 11:01 PMhow old is the cert you used to sign the pkg?let me check
Ari Weinberg
06/22/2023, 11:01 PMroberto
06/22/2023, 11:02 PMroberto
06/22/2023, 11:02 PMAri Weinberg
06/22/2023, 11:02 PMroberto
06/22/2023, 11:03 PMAri Weinberg
06/22/2023, 11:07 PMroberto
06/22/2023, 11:14 PMsecurity find-identity -v
mine says:
1) REDACTED "Developer ID Installer: Roberto Dip (UK9WG435C6)"
I'm asking this because there are others with very similar names like "Developer ID Application"Ari Weinberg
06/22/2023, 11:14 PMAri Weinberg
06/22/2023, 11:18 PM