Can't install more than one p12 certificate to temporary keychain
See original GitHub issueQuestion, 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:
- Created 4 years ago
- Reactions:2
- Comments:12 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The issue remains the same
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.