fastlane: Couldn't decrypt the repo, please make sure you enter the right password!
Issue Description
Match can’t decrypt the repo and keep me asking the passphrase over and over again.
Complete output when running fastlane, including the stack trace and command used
[22:57:23]: Cloning remote git repo...
[22:57:28]: Migrating to new match...
[22:57:28]: Enter the passphrase that should be used to encrypt/decrypt your certificates
[22:57:28]: This passphrase is specific per repository and will be stored in your local keychain
[22:57:28]: Make sure to remember the password, as you'll need it when you run match on a different machine
Passphrase for Git Repo: ******
Type passphrase again: ******
[22:57:34]: 🔒 Successfully encrypted certificates repo
[22:57:34]: Cloning remote git repo...
[22:57:39]: Couldn't decrypt the repo, please make sure you enter the right password!
version: 256
class: "inet"
attributes:
0x00000007 <blob>="match_git@bitbucket.org:username/myrepo.git"
0x00000008 <blob>=<NULL>
"acct"<blob>=<NULL>
"atyp"<blob>="dflt"
"cdat"<timedate>=0x32303136303430313130303034375A00 "20160401100047Z\000"
"crtr"<uint32>=<NULL>
"cusi"<sint32>=<NULL>
"desc"<blob>=<NULL>
"icmt"<blob>=<NULL>
"invi"<sint32>=<NULL>
"mdat"<timedate>=0x32303136303430313130303034375A00 "20160401100047Z\000"
"nega"<sint32>=<NULL>
"path"<blob>=<NULL>
"port"<uint32>=0x00000000
"prot"<blob>=<NULL>
"ptcl"<uint32>=0x00000000
"scrp"<sint32>=<NULL>
"sdmn"<blob>=<NULL>
"srvr"<blob>="match_git@bitbucket.org:username/myrepo.git"
"type"<uint32>=<NULL>
password has been deleted.
[23:01:02]: Enter the passphrase that should be used to encrypt/decrypt your certificates
[23:01:02]: This passphrase is specific per repository and will be stored in your local keychain
[23:01:02]: Make sure to remember the password, as you'll need it when you run match on a different machine
Passphrase for Git Repo:
Environment
fastlane 1.70.0 match 0.4.0 rvm 1.26.11
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 27 (2 by maintainers)
So found out there’s no automated way of doing that but you can do it manually. A great post here will step you through that, it’s towards the end. http://macoscope.com/blog/simplify-your-life-with-fastlane-match/
I was seeing the same error as well. My problem was I never encrypted the certificates and provisioning profile and added them straight into my repo. When running “match appstore” it would try to clone the repo and immediately prompt me for a password. Obviously this password did not exist. I then tried “match change_password” in the hopes of initiating that step but it would check my keychain for an existing match password that also did not exist.
What ended up working was cleaning out the repo and running “match appstore”
This then created a new certificate and new provisioning profile, downloaded, installed, encrypted etc… and everything worked as expected.
The problem is I just now duplicated a certificate and provisioning profile. Is there a method in match where I can seed my git repo with existing certs and profiles?
@gekitz No problem! Really glad to hear you got up and running. Hope that you have a wonderful week 👍