codesign --timestamp

I have made a web service (php apache) for building package online.

Within the php script, I call a script with exec() to sign the app file.

Inside the script.sh I have the codesign command:


codesign -f -s "${APP_SIG_NAME}" --keychain "${SIGNING_KEYCHAIN}" "${out_name}.app"


and it fails saying: A timestamp was expected but was not found.

When I add --timestamp=none, it works and signs the app.


When I run my script.sh from terminal it works fine, even without --timestamp=none .

The output from Terminal-script.sh without --timestamp=none is different from the output from php-script.sh with --timestamp=none.


How can I make codesign to work without --timestamp=none when I call from php script?


I tried:

Change apache user to admin

Use different timestamp servers

but no success.

codesign --timestamp
 
 
Q