Certificates and profiles

Hello,

I’m finding an issue related to the certificates and profiles steps in which they don’t let me sign my build with the profile. Apparently it’s related to putting a wrong password but I’ve tripled check and it seems to be the same.

Does anybody have an idea of why this is happening?

Thanks!

Downloading certificate: 1/2
Downloading (https://con***e62) to (/var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/bitrise-cert-tmp567407753/Certificate-0.p12)

=> Downloading certificate: 2/2
Downloading (https://s3-***p12) to (/var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/bitrise-cert-tmp567407753/Certificate-1.p12)

=> Installing downloaded certificate
Command failed, output: security: SecKeychainItemImport: MAC verification failed during PKCS12 import (wrong password?)
Command failed, err: exit status 1
| |
±–±--------------------------------------------------------------±---------+
| x | certificate-and-profile-installer@1.8.5 (exit code: 1) | 5.71 sec |
±–±--------------------------------------------------------------±---------+
| Issue tracker: …/bitrise-io/steps-certificate-and-profile-installer/issues |
| Source: …s://github.com/bitrise-io/steps-certificate-and-profile-installer |
±–±--------------------------------------------------------------±---------+

Hi @andrestorres123 :wave:

Did you export the cert/p12 using codesigndoc or manually?

If you used codesigndoc then you should remove the password, as it exports the .p12 without any password (this is noted in it’s log).

If you did not use codesigndoc to export the .p12 I’d suggest you to do so - related docs: http://devcenter.bitrise.io/ios/code-signing/

If you have any questions feel free to ask!

Just a note for this: this error comes from MacOS (security) directly, not from our script/code. This is MacOS telling that the .p12’s password is probably wrong (or the format of the .p12 is).

Hi @viktorbenei

I manually uploaded them but I’m pretty sure the password was the same. Nonetheless, I use codesigndoc and it worked perfectly. Still, don’t have any idea why manually it didn’t work but thanks for the help!

Bests!!

1 Like