Unable to unlock keychain

Build a new Jenkins iOS CI story application. I created a keyring with a name buildin KeyChainAccess to store the dev certificate.

I set a password for the keychain. On Jenkins, Manage Jenkins --> Keychains and Provisioning Profiles Management -> build.keychain On Jenkins, Manage Jenkins --> Keychains and Provisioning Profiles Management ->select the file build.keychainand upload.

I filled in the password (same as before). I filled out the certificate (by copying the common name of the certificate information in KeyChain access).

I created a Jenkins work using a key and code binding identifier filled with a password. But when I create a project by Jenkins, it throws the following error in the Output Console:

[ProjectName] $ /usr/bin/security unlock-keychain -p ********    /Users/Shared/Jenkins/Home/jobs/JobName/workspace/build.keychain
security: SecKeychainUnlock /Users/Shared/Jenkins/Home/jobs/JobName/workspace/build.keychain: The user name or passphrase you entered is not correct.

FATAL: Unable to unlock the keychain.

I checked the password, I can unlock the keychain in KeyChain Access with a password. I'm not sure what username is asking, Jenkins?

+5
3

, , , !

. The username or passphrase you entered is not correct. , - .

, , , , . :

security list-keychains

, - :

    "/Users/jenkins/Library/Keychains/login.keychain-db"
    "/Library/Keychains/System.keychain"

build , - , . , , , , .

- , , :

security list-keychains -s pathOfTheKeychainDuplicated

, , , :

security unlock-keychain -p ****** /Users/jenkins/Library/Keychains/login.keychain-db

build

, .

+1

Mac unlock keychain.

  • ( )
  • → .
  • , ! ..

macOS Sierra High Sierra.

0

I had a similar problem with unlocking the jenkins keychain after upgrading to Mojave.

This was caused by incorrectly setting the default keyword.

I used security default-keychain -s <name>to change the default value back to the jenkins user login chain.

0
source

Source: https://habr.com/ru/post/1629639/


All Articles