Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Force to download a certificate with fastlane #54

Closed
dalu93 opened this issue Dec 31, 2015 · 4 comments
Closed

Force to download a certificate with fastlane #54

dalu93 opened this issue Dec 31, 2015 · 4 comments
Labels

Comments

@dalu93
Copy link

dalu93 commented Dec 31, 2015

Hello,
I'm actually using cert && sigh with fastlane. This is my code into a private_lane

if options[:scheme] != default_production_scheme
  cert(
    development: true,
    output_path: "./fastlane/certificates"
  )
else
  cert(
    output_path: "./fastlane/certificates"
  )
end

sigh(
  output_path: './fastlane/profiles'
)

The problem is that I have two production certificates saved on my machine, my personal distribution certificate (the wronged one) and the application distribution certificate (what I want to download). It seems that cert loops trough the certificates until it finds a valid one and, unfortunately, it takes always the wronged one. How can I solve this problem? Thank you

@dalu93
Copy link
Author

dalu93 commented Dec 31, 2015

I found a solution using only sigh, without cert.

sigh(
    cert_id: "CERTIFICATE_ID",
    ...
)

@KrauseFx
Copy link
Contributor

KrauseFx commented Jan 2, 2016

The best solution is to use match since it takes care of all the heavy lifting for you 🚀

@dalu93
Copy link
Author

dalu93 commented Jan 2, 2016

I agree with that, but the owner of the certs doesn't want!

@fastlanebot
Copy link

This issue was migrated to fastlane/fastlane#3101. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo 🚀

@fastlane-old fastlane-old locked and limited conversation to collaborators Mar 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants