When I develop the usb driver, activate app & usb driver load successfully.(SIP disabled)
But after SIP enable can't load usb driver with code signature error.
Exception Type: EXCCRASH (Code Signature Invalid)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXCCORPSE_NOTIFY
Termination Reason: Namespace CODESIGNING, Code 0x1
codesign validate looks find.
Usb driver with activateApp is notarized.
codesign -vvv /ActivateApp.app/Content/Library/SystemExtensions/MyUSBdriver.dext
/ActivateApp.app/Content/Library/SystemExtensions/MyUSBdriver.dext: valid on disk
/ActivateApp.app/Content/Library/SystemExtensions/MyUSBdriver.dext: satisfies its Designated Requirement
codesign -d -vvv --entitlement :- /ActivateApp.app/Content/Library/SystemExtensions/MyUSBdriver.dext
security cms -D -i /ActivateApp.app/Content/Library/SystemExtensions/MyUSBdriver.dext/embedded.provisionprofile
Does anyone have any ideas why can't load driver usb driver?
But after SIP enable can't load usb driver with code signature error.
Exception Type: EXCCRASH (Code Signature Invalid)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXCCORPSE_NOTIFY
Termination Reason: Namespace CODESIGNING, Code 0x1
codesign validate looks find.
Usb driver with activateApp is notarized.
codesign -vvv /ActivateApp.app/Content/Library/SystemExtensions/MyUSBdriver.dext
/ActivateApp.app/Content/Library/SystemExtensions/MyUSBdriver.dext: valid on disk
/ActivateApp.app/Content/Library/SystemExtensions/MyUSBdriver.dext: satisfies its Designated Requirement
codesign -d -vvv --entitlement :- /ActivateApp.app/Content/Library/SystemExtensions/MyUSBdriver.dext
Code Block language Executable=/ActivateApp.app/Content/Library/SystemExtensions/MyUSBdriver Identifier=com.devguru.DriverKit.MyUSBdriver Format=bundle with Mach-O thin (x86_64) CodeDirectory v=20400 size=586 flags=0x0(none) hashes=9+5 location=embedded Hash type=sha256 size=32 CandidateCDHash sha256=32172e957bb8d78c6293871b18f5c50838617025 CandidateCDHashFull sha256=32172e957bb8d78c6293871b18f5c50838617025db9d9b62ab4fb0e2892e5c07 Hash choices=sha256 CMSDigest=32172e957bb8d78c6293871b18f5c50838617025db9d9b62ab4fb0e2892e5c07 CMSDigestType=2 CDHash=32172e957bb8d78c6293871b18f5c50838617025 Signature size=8972 Authority=Developer ID Application: DEVGURU Co., Ltd. (EZ5B6482X4) Authority=Developer ID Certification Authority Authority=Apple Root CA Timestamp=Aug 10, 2020 10:39:40 AM Info.plist entries=22 TeamIdentifier=EZ5B6482X4 Sealed Resources version=2 rules=10 files=1 Internal requirements count=1 size=200 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>com.apple.developer.driverkit</key> <true/> <key>com.apple.developer.driverkit.transport.usb</key> <array> <dict> <key>idVendor</key> <integer>1234</integer> </dict> </array> </dict> </plist>
security cms -D -i /ActivateApp.app/Content/Library/SystemExtensions/MyUSBdriver.dext/embedded.provisionprofile
Code Block language <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Platform</key> <array> <string>OSX</string> </array> <key>IsXcodeManaged</key> <false/> <key>DeveloperCertificates</key> <array> <data>..</data> </array> <key>Entitlements</key> <dict> <key>com.apple.developer.driverkit</key> <true/> <key>com.apple.developer.driverkit.family.networking</key> <true/> <key>com.apple.developer.driverkit.family.serial</key> <true/> <key>com.apple.developer.system-extension.install</key> <true/> <key>com.apple.application-identifier</key> <string>EZ5B6482X4.com.devguru.DriverKit.MyUSBdriver</string> <key>keychain-access-groups</key> <array> <string>EZ5B6482X4.*</string> </array> <key>com.apple.developer.team-identifier</key> <string>EZ5B6482X4</string> <key>com.apple.developer.driverkit.transport.usb</key> <array> <dict> <key>idVendor</key> <integer>1234</integer> </dict> </array> </dict> .. <key>ProvisionsAllDevices</key> <true/> <key>TeamIdentifier</key> <array> <string>EZ5B6482X4</string> </array> <key>TeamName</key> <string>DEVGURU Co., Ltd.</string> <key>TimeToLive</key> <integer>6570</integer> <key>UUID</key> <string>8a07f2be-df46-439f-8ab0-7c3712f72533</string> <key>Version</key> <integer>1</integer> </dict> </plist>%
Does anyone have any ideas why can't load driver usb driver?