<@U0F2G55TM> Is there still a way to test Endpoint...
# macos
z
@sharvil Is there still a way to test EndpointSecurity in development? I can't figure out how to add the entitlement in the right way (always getting
EndpointSecurity client lacks entitlement
)
I already have SIP disabled
s
@zwass you don’t need SIP disabled — you will have to create and download local development certs from your apple developer account
Then install those certs, and codesign using them, and change the team id accordingly https://github.com/osquery/osquery/blob/master/tools/deployment/macos_packaging/osquery.entitlements
Copy code
codesign -s <signing_id_of_local_cert> -f --options runtime --entitlements /path/to/osquery.entitlements -v --timestamp /path/to/osqueryd
z
But do I need that entitlement on my account?
s
Yes, you do need entitlement on your account
z
That's going to be a problem I think
s
Then you can disable SIP and do an ad-hoc signature I believe, but not 100% sure
z
Okay so you haven't done it that way?
s
Can you try adhoc signing and see?
Copy code
codesign -s - -f --entitlements /path/to/osquery.entitlements /path/to/osqueryd
The osquery.entitlements file can just be this:
Copy code
<?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.endpoint-security.client</key>
    <true/>
</dict>
</plist>
I am on a non-macos laptop tonight, so will be harder for me to check
But I think that should work
z
It worked! Thank you!!
t
Any tips on getting the entitlement approved to be able to develop without having to disable SIP?