Hi,
how can I check if a code signature contains a signed timestamp?
$ codesign -s "Developer ID..." --options runtime -f --timestamp MyApp.app
MyApp.app: replacing existing signature
$ codesign --display -v MyApp.app 2>&1 | grep 2020
Timestamp=30. Apr 2020 at 14:25:45
Is this a secure timestamp? Or just a timestamp without signature?
In my understanding --timestamp=none should disable secure timestamping:
$ codesign -s "Developer ID..." --options runtime -f --timestamp=none MyApp.app
MyApp.app: replacing existing signature
$ codesign --display -v MyApp.app 2>&1 | grep 2020
Signed Time=30. Apr 2020 at 14:24:24
Why do I get a a "Signed Time" here??
Timestamp
indicates a secure timestamp from the Apple timestamp service. In contrast,
Signed Time
is an
insecure timestamp, that is, it’s whatever value was returned by the clock on the Mac that did the signing.
For more details, see the doc comments for
kSecCodeInfoTimestamp
and
kSecCodeInfoTime
in
<Security/SecCode.h>
.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"