permasigner / permasigner

🖊 Permanently signs IPAs on jailbroken iDevices (persists on stock).
BSD 3-Clause "New" or "Revised" License
497 stars 210 forks source link

Fails to sign on macOS when using -c flag #45

Closed superrnovae closed 2 years ago

superrnovae commented 2 years ago

What is the expected behavior?

codesign succeeds

What is the actual behavior?

codesign fails

What are the steps to reproduce this bug?

run the script with -s flag

Please provide debug logs:

Use the --debug option while running the script, and paste the output into the codeblocks.

Signing with codesign as it was specified...
security: SecKeychainItemImport: MAC verification failed during PKCS12 import (wrong password?)
error: The specified item could not be found in the keychain.
[DEBUG] Frameworks path exists
[DEBUG] Executable found in the Module_Framework.framework
Signing executable in Module_Framework.framework
[DEBUG] Running command: codesign -s 'We Do A Little Trolling iPhone OS Application Signing' --force --deep /var/folders/n_/p90183755b30dtf0wcqlh5bc0000gn/T/tmpy7_0nkpx/deb/Applications/YouTube.app/Frameworks/Module_Framework.framework/Module_Framework
error: The specified item could not be found in the keychain.

Any possible solutions?

use correct password

Can you identify the location in the source code where the problem exists?

cert import

superrnovae commented 2 years ago

Might be related

itsnebulalol commented 2 years ago

Fixed in 7b9b015

superrnovae commented 2 years ago

It's now prompting for a password instead.

itsnebulalol commented 2 years ago

Alrighty, might make a seperate cert for codesign

superrnovae commented 2 years ago

Alrighty, might make a seperate cert for codesign

password protected p12 certs are now supported by procursus ldid.

itsnebulalol commented 2 years ago

Codesign is seperate from ldid

superrnovae commented 2 years ago

Codesign is seperate from ldid

I meant that you don't necessarily have to have 2 certs, you can have one that is password protected and use it with both ldid and codesign.

itsnebulalol commented 2 years ago

I mean yes, but then there’s no support for Elucubratus ldid on iOS

superrnovae commented 2 years ago

Oh, you're right. I forgot about that. Sorry.

itsnebulalol commented 2 years ago

Fixed