Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/macos-verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ signer() {
certificate() {
local dir="$WORK/certs-$RANDOM"
mkdir -p "$dir"
(cd "$dir" && codesign -d --extract-certificates "$1" 2>/dev/null)
local leaf="$dir/codesign0"
codesign -d --extract-certificates="$dir/cert" "$1" 2>/dev/null || true
local leaf="$dir/cert0"
[ -f "$leaf" ] || fail "could not read the signing certificate of $1"
local until
until="$(openssl x509 -inform DER -in "$leaf" -noout -enddate | cut -d= -f2)"
Expand Down
Loading