r/macosprogramming • u/Obsessed_Pikachu • 6h ago
shipping outside the app store? your Developer ID cert may be from the CA that expires 1 Feb 2027, and codesign won't show it
apple's original Developer ID intermediate expires 1 Feb 2027 (notAfter=Feb 1 22:12:15 2027 GMT in the .cer). certs it issued stop working, pkgs signed with them stop installing. notarized apps with a secure timestamp keep working. replacement is G2, but G2 certs expire every year.
the annoying part: old and G2 intermediates have the same CN. only the OU differs (OU=Apple Certification Authority vs OU=G2). codesign -dvvv only shows the CN, so the Authority lines look identical.
check the cert you sign with:
security find-certificate -a -c "Developer ID Application" -p | openssl x509 -noout -issuer -enddate
on CI from the .p12 secret:
openssl pkcs12 -in cert.p12 -nokeys -passin pass:"$P12_PASSWORD" | openssl x509 -noout -issuer -enddate
two things from testing on my lab files: a .p12 exported with -legacy needs -legacy here too on openssl 3.6 or it says "Could not find certificate". and if you point security at a keychain file, use the full path, relative found nothing.
shortcut: apple says no cert can outlive its intermediate, so if yours expires after 1 Feb 2027 it's G2.
full write-up with the app check, timestamp check and apple sources: https://deepboda.in/writing/developer-id-1-feb-2027

