Skip to content

Code signing script needs update #109

@OskarGroth

Description

@OskarGroth

Not using this software, but ran into the same problem and thought I'd drop a hint.

The CodeSigningUpdate (https://github.com/brightdigit/Speculid/blob/12ef69622a6940f75201f4767566a79345146ff2/scripts/CodeSignUpdate.sh) script is failing on Xcode 11 because Mac Developer certificates are now on the form Apple Development: instead of Mac Developer:.

You incorrectly fixed this by commenting out set 36ff4be#diff-de6b762ded769596e652fd6f22b5e3af which causes the script to finish despite the errors, but the error still occur and as a result your Info.plist is borked:

<string>identifier "com.brightdigit.Speculid-Mac-Installer" and anchor apple generic and Invalid Mac Developer CN: Apple Development: Leo Dion (5VZ4KT69B9) and certificate 1[field.1.2.840.113635.100.6.2.1] /* exists */</string>

Instead, the error can be fixed correctly by updating the scripts macDeveloper function as follows:

if ! [[ ${macDeveloperCN} =~ ^Apple\ Development:\ .*\ \([A-Z0-9]{10}\)$ ]]; then
    printf "%s\n" "Invalid Mac Developer CN: ${macDeveloperCN}"
    exit 1
fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions