zhlynn / zsign

Maybe it is the most quickly codesign alternative for iOS12+, cross-platform ( macOS, Linux , Windows ), more features.
BSD 3-Clause "New" or "Revised" License
1.3k stars 391 forks source link

Unable to publish to appstore #247

Open sbfkcel opened 2 years ago

sbfkcel commented 2 years ago

ERROR ITMS-90034

I see other same problem

https://github.com/zhlynn/zsign/issues/223

redfearnk commented 2 years ago

Yes, I have the problem also

redfearnk commented 2 years ago

I even used Apple's troubleshooting tool for this error: codesign --verify -vvvv -R='anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.1] exists and (certificate leaf[field.1.2.840.113635.100.6.1.2] exists or certificate leaf[field.1.2.840.113635.100.6.1.4] exists)' ~/Payload/MyApp.app

And all the checks came back as as successful, no problems detected

DebianArch64 commented 2 years ago

Issue is caused in openssl.cpp file lines 212 is commented out and signer and pk is left NULL

Change // CMS_add1_signer(cms, NULL, NULL, EVP_sha1(), nFlags); To CMS_add1_signer(cms, scert, spkey, EVP_sha1(), nFlags);