Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Find out which certificate a macos was signed with.
codesign -d --extract-certificates ./[App Name Here].app;
openssl x509 -inform DER -in codesign0 -out codesign0.pem;
openssl x509 -inform DER -in codesign1 -out codesign1.pem;
openssl x509 -inform DER -in codesign2 -out codesign2.pem;
cat codesign1.pem codesign2.pem > cachain.pem;
openssl x509 -inform DER -in codesign0 -noout -nameopt -oneline -subject -serial -dates;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment