SecKeyCreateRandomKey fails from a daemon

We are launching a commandline golang binary as daemon. However, SecKeyCreateRandomKey does not return in macos Sonoma.

We tried to attach entitlement to the daemon, but it's still not working. The same commandline golang binary works when we launch it as a user process.

We would like to get your support to fix this issue.

SecKeyCreateRandomKey fails from a daemon
 
 
Q