I’ve tried exporting signing certificate(.p12) from Xcode, from the Keychain and from the apple developer site but none of then worked, certificate-and-profile-installer always fails with a parse error
The codesigndoc did work but I’ll need to generate new certificates for other accounts and codesigndoc won’t be a option
I even followed this guide https://devcenter.bitrise.io/code-signing/ios-code-signing/exporting-code-signing-files/, but it didn’t work.
This is the error:
+------------------------------------------------------------------------------+
| (3) certificate-and-profile-installer@1.9.3 |
+------------------------------------------------------------------------------+
| id: certificate-and-profile-installer |
| version: 1.9.3 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: go |
| time: 2018-06-21T13:09:49-07:00 |
+------------------------------------------------------------------------------+
| |
INFO[13:09:49] * [OK] Step dependency (go) installed, available.
Configs:
- CertificateURL: http://mob***p12
- CertificatePassphrase: ***
- ProvisioningProfileURL: http://mob***ion
- InstallDefaults: yes
- DefaultCertificateURL: https://s3-***p12
- DefaultCertificatePassphrase: ***
- DefaultProvisioningProfileURL: https://s3-***ion
- KeychainPath: /Users/vagrant/Library/Keychains/login.keychain
- KeychainPassword: ***
Default Certificate given
Provided Certificate count: 2
Default Provisioning Profile given
Provided Provisioning Profile count: 3
Keychain already exists, using it: /Users/vagrant/Library/Keychains/login.keychain
Downloading & installing Certificate(s)
Downloading certificate: 1/2
Downloading certificate: 2/2
Installing downloaded certificates
Failed to parse certificate, error: pkcs12: error reading P12 data: asn1: structure error: tags don't match (16 vs {class:0 tag:28 length:63 isCompound:true}) {optional:false explicit:false application:false defaultValue:<nil> tag:<nil> stringType:0 timeType:0 set:false omitEmpty:false} pfxPdu @2
Is there something special that I have to do when exporting the .p12 certifcate?