question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't install more than one p12 certificate to temporary keychain

See original GitHub issue

Question, Bug, or Feature?
Type: Bug

Enter Task Name: InstallAppleCertificate@2

Environment

  • Server - Azure Pipelines, all hosted

Issue Description

Trying to install more than one certificate to the temporary keychain (i.e. having more than one instance of InstallAppleCertificate fails on the 2nd invocation. I’m not sure how you can install both the development and distribution certificates

Task logs

[command]/usr/bin/security unlock-keychain -p *** /Users/vsts/agent/2.153.2/work/_temp/ios_signing_temp.keychain
[command]/usr/bin/security import /Users/vsts/agent/2.153.2/work/_temp/distribution.p12 -P *** -A -t cert -f pkcs12 -k /Users/vsts/agent/2.153.2/work/_temp/ios_signing_temp.keychain
1 identity imported.
[command]/usr/local/bin/openssl pkcs12 -in /Users/vsts/agent/2.153.2/work/_temp/distribution.p12 -nocerts -passin pass:*** -passout pass:*** | /usr/bin/grep friendlyName
MAC verified OK
    friendlyName: iOS Distribution: Ana�s Betts
[command]/usr/bin/security set-key-partition-list -S apple-tool:,apple: -s -l iOS Distribution: Ana�s Betts -k *** /Users/vsts/agent/2.153.2/work/_temp/ios_signing_temp.keychain
security: SecItemCopyMatching: The specified item could not be found in the keychain.
##[error]Error: The process '/usr/bin/security' failed with exit code 1
##[error]Error: Error setting the partition_id ACL for the private key. Verify that the `Keychain password` is correct, or use a `Temporary Keychain` instead.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
1RGB1commented, Mar 17, 2022

The issue remains the same

0reactions
anatolybolshakovcommented, Feb 17, 2022

Hi everyone! Fix for this issue has been already rolled out - closing it as resolved at the moment. Please let us know if you have any other questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure PIpeline cannot install two Apple Certificates
I have two task in my pipeline build to install two different iOS certificates. ... 'FirstCert.p12' certPwd: $(FirstCertPass) keychain: 'temp' # Options: ...
Read more >
ios - Keychain unable to import p12 properly and system ...
I have .p12 file of ios Development certificate, I want to import it into my login keychain. But when I double tap it...
Read more >
SecPKCS12Import is failing to import P12 certificate.
When trying to import a P12 certificate using the API SecPKCS12Import, it is failing with error ... These two files have significant structural...
Read more >
InstallAppleCertificate@2 - Install Apple certificate v2 task
Install an Apple certificate required to build on a macOS agent machine. ... For Microsoft-hosted builds, use Temporary Keychain . A temporary keychain...
Read more >
Code Signing - electron-builder
To sign an app on Windows, there are two types of certificates: ... Thus, you can't export the certificate for signing code on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found