Git Product home page Git Product logo

cert's People

Contributors

df-franzi avatar elaz avatar jinjorge avatar krausefx avatar lacostej avatar lmirosevic avatar mfurtak avatar milch avatar mokagio avatar ohayon avatar readmecritic avatar tobiasstrebitzer avatar vpolouchkine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cert's Issues

Unable to specify a specific certificate to use

I have an enterprise account with 2 distribution certificates. Using cert and sigh I'm running into some issues where Fastlane tries to use the wrong certificate of the 2 created.

Particularly if you have 1 certificate installed on your computer, but you want to use the other one from the dev. portal, then cert will just automatically select the one you have installed. The only parameter one has to control this is to specify the team_id which does not help you in this case.

So, a feature request would be to be able to specify a specific certificate I would like cert to use, or else I will continue to end in the sigh step (where I am able to specify the cert_id) but that will fail because cert picked the wrong certificate and thus did not download the one I specified in sigh.

--help doesn't work for me

~me$ cert --help
(erb):2:in `get_binding': undefined method `size' for nil:NilClass (NoMethodError)
        from /Users/Shared/Jenkins/Home/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/erb.rb:850:in `eval'
        from /Users/Shared/Jenkins/Home/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/erb.rb:850:in `result'
        from /Users/Shared/Jenkins/Home/.rvm/gems/ruby-2.1.1/gems/commander-4.3.3/lib/commander/help_formatters/terminal.rb:7:in `render'
        from /Users/Shared/Jenkins/Home/.rvm/gems/ruby-2.1.1/gems/commander-4.3.3/lib/commander/runner.rb:302:in `block (2 levels) in create_default_commands'
        from /Users/Shared/Jenkins/Home/.rvm/gems/ruby-2.1.1/gems/commander-4.3.3/lib/commander/command.rb:178:in `call'
        from /Users/Shared/Jenkins/Home/.rvm/gems/ruby-2.1.1/gems/commander-4.3.3/lib/commander/command.rb:178:in `call'
        from /Users/Shared/Jenkins/Home/.rvm/gems/ruby-2.1.1/gems/commander-4.3.3/lib/commander/command.rb:153:in `run'
        from /Users/Shared/Jenkins/Home/.rvm/gems/ruby-2.1.1/gems/commander-4.3.3/lib/commander/runner.rb:57:in `block in run!'
        from /Users/Shared/Jenkins/Home/.rvm/gems/ruby-2.1.1/gems/commander-4.3.3/lib/commander/runner.rb:382:in `block in global_option_proc'
        from /Users/Shared/Jenkins/Home/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/optparse.rb:1359:in `call'
        from /Users/Shared/Jenkins/Home/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/optparse.rb:1359:in `block in parse_in_order'
        from /Users/Shared/Jenkins/Home/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/optparse.rb:1346:in `catch'
        from /Users/Shared/Jenkins/Home/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/optparse.rb:1346:in `parse_in_order'
        from /Users/Shared/Jenkins/Home/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/optparse.rb:1340:in `order!'
        from /Users/Shared/Jenkins/Home/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/optparse.rb:1432:in `permute!'
        from /Users/Shared/Jenkins/Home/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/optparse.rb:1454:in `parse!'
        from /Users/Shared/Jenkins/Home/.rvm/gems/ruby-2.1.1/gems/commander-4.3.3/lib/commander/runner.rb:363:in `parse_global_options'
        from /Users/Shared/Jenkins/Home/.rvm/gems/ruby-2.1.1/gems/commander-4.3.3/lib/commander/runner.rb:65:in `run!'
        from /Users/Shared/Jenkins/Home/.rvm/gems/ruby-2.1.1/gems/commander-4.3.3/lib/commander/delegates.rb:15:in `run!'
        from /Users/Shared/Jenkins/Home/.rvm/gems/ruby-2.1.1/gems/cert-0.1.9/bin/cert:40:in `run'
        from /Users/Shared/Jenkins/Home/.rvm/gems/ruby-2.1.1/gems/cert-0.1.9/bin/cert:46:in `<top (required)>'
        from /Users/Shared/Jenkins/Home/.rvm/gems/ruby-2.1.1/bin/cert:23:in `load'
        from /Users/Shared/Jenkins/Home/.rvm/gems/ruby-2.1.1/bin/cert:23:in `<main>'
        from /Users/Shared/Jenkins/Home/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
        from /Users/Shared/Jenkins/Home/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'

Couldn't download certificate, got this instead: HTTP 405 Method Not Allowed

[18:16:46]: ------------------
[18:16:46]: --- Step: cert ---
[18:16:46]: ------------------

+---------------+--------------------------------------------------------+
|                         Summary for cert 1.3.0                         |
+---------------+--------------------------------------------------------+
| development   | false                                                  |
| force         | false                                                  |
| username      | XXX                                                    |
| keychain_path | /Users/Shared/Jenkins/Library/Keychains/login.keychain |
+---------------+--------------------------------------------------------+

[18:16:46]: Starting login with user 'XXX'
[18:16:48]: Successfully logged in
[18:16:51]: -------------------
[18:16:51]: --- Step: slack ---
[18:16:51]: -------------------
[18:16:53]: Successfully sent Slack notification
[18:16:53]: Variable Dump:
[18:16:53]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios publish", :PRODUCE_APPLE_ID=>"XXX"}
[18:16:53]: Couldn't download certificate, got this instead: HTTP 405 Method Not Allowed

+------+-------------------------------------+-------------+
|                     fastlane summary                     |
+------+-------------------------------------+-------------+
| Step | Action                              | Time (in s) |
+------+-------------------------------------+-------------+
| 1    | Verifying required fastlane version | 0           |
| 2    | default_platform                    | 0           |
| 3    | Switch to ios build lane            | 0           |
| 4    | Switch to ios create lane           | 0           |
| 5    | produce                             | 19          |
| 6    | Switch to ios provision lane        | 0           |
| 7    | cert                                | 4           |
| 8    | slack                               | 2           |
+------+-------------------------------------+-------------+

[18:16:54]: fastlane finished with errors
Successfully submitted a crash report. If this is a problem with one of the tools specifically,
please submit an issue on GitHub and attach the following number to it: '3b7c03f82ebd0eeb27b45f19be0bf2f8'
The crash report has been stored locally '/tmp/sentry_3b7c03f82ebd0eeb27b45f19be0bf2f8.json'
/Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/spaceship-0.21.1/lib/spaceship/portal/portal_client.rb:311:in `download_certificate': [!] Couldn't download certificate, got this instead: HTTP 405 Method Not Allowed (Spaceship::Client::UnexpectedResponse)
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/spaceship-0.21.1/lib/spaceship/portal/certificate.rb:309:in `download_raw'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/cert-1.3.0/lib/cert/runner.rb:132:in `store_certificate'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/cert-1.3.0/lib/cert/runner.rb:46:in `block in find_existing_cert'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/cert-1.3.0/lib/cert/runner.rb:41:in `each'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/cert-1.3.0/lib/cert/runner.rb:41:in `find_existing_cert'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/cert-1.3.0/lib/cert/runner.rb:27:in `run'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/cert-1.3.0/lib/cert/runner.rb:6:in `launch'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/actions/cert.rb:19:in `run'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/runner.rb:143:in `block (2 levels) in execute_action'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/actions/actions_helper.rb:35:in `execute_action'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/runner.rb:129:in `block in execute_action'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/runner.rb:128:in `chdir'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/runner.rb:128:in `execute_action'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/fast_file.rb:149:in `method_missing'
    from Fastfile:44:in `block (2 levels) in parsing_binding'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/lane.rb:36:in `call'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/lane.rb:36:in `call'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/runner.rb:110:in `try_switch_to_lane'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/fast_file.rb:141:in `rescue in method_missing'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/fast_file.rb:136:in `method_missing'
    from Fastfile:53:in `block (2 levels) in parsing_binding'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/lane.rb:36:in `call'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/lane.rb:36:in `call'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/runner.rb:110:in `try_switch_to_lane'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/fast_file.rb:141:in `rescue in method_missing'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/fast_file.rb:136:in `method_missing'
    from Fastfile:60:in `block (2 levels) in parsing_binding'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/lane.rb:36:in `call'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/lane.rb:36:in `call'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/runner.rb:52:in `block in execute'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/runner.rb:46:in `chdir'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/runner.rb:46:in `execute'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/lane_manager.rb:46:in `cruise_lane'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/lib/fastlane/command_line_handler.rb:30:in `handle'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/bin/fastlane:38:in `block (2 levels) in run'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane_core-0.37.0/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/bin/fastlane:156:in `run'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-1.64.0/bin/fastlane:162:in `<top (required)>'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/bin/fastlane:23:in `load'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/bin/fastlane:23:in `<main>'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
    from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'
exception

The crash report was sent with the number 3b7c03f82ebd0eeb27b45f19be0bf2f8.

Couldn't creating a new certificate

+-------------+--------------------+
|      Summary for cert 1.2.2      |
+-------------+--------------------+
| development | true               |
| force       | false              |
| username    | [email protected] |
| output_path | .                  |
+-------------+--------------------+

[21:47:36]: Starting login with user '[email protected]'
[21:47:38]: Successfully logged in
[21:47:43]: Certificate 6YY23MGBA2 (delight chen) can't be found on your local computer
[21:47:43]: Couldn't find an existing certificate... creating a new one
/Users/retsohuang/.rvm/gems/ruby-2.1.1@global/gems/cert-1.2.2/lib/cert/keychain_importer.rb:5:in `expand_path': no implicit conversion of nil into String (TypeError)
    from /Users/retsohuang/.rvm/gems/ruby-2.1.1@global/gems/cert-1.2.2/lib/cert/keychain_importer.rb:5:in `import_file'
    from /Users/retsohuang/.rvm/gems/ruby-2.1.1@global/gems/cert-1.2.2/lib/cert/runner.rb:103:in `create_certificate'
    from /Users/retsohuang/.rvm/gems/ruby-2.1.1@global/gems/cert-1.2.2/lib/cert/runner.rb:24:in `run'
    from /Users/retsohuang/.rvm/gems/ruby-2.1.1@global/gems/cert-1.2.2/lib/cert/runner.rb:6:in `launch'
    from /Users/retsohuang/.rvm/gems/ruby-2.1.1@global/gems/cert-1.2.2/bin/cert:32:in `block (2 levels) in run'
    from /Users/retsohuang/.rvm/gems/ruby-2.1.1@global/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Users/retsohuang/.rvm/gems/ruby-2.1.1@global/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Users/retsohuang/.rvm/gems/ruby-2.1.1@global/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
    from /Users/retsohuang/.rvm/gems/ruby-2.1.1@global/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
    from /Users/retsohuang/.rvm/gems/ruby-2.1.1@global/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'
    from /Users/retsohuang/.rvm/gems/ruby-2.1.1@global/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
    from /Users/retsohuang/.rvm/gems/ruby-2.1.1@global/gems/cert-1.2.2/bin/cert:38:in `run'
    from /Users/retsohuang/.rvm/gems/ruby-2.1.1@global/gems/cert-1.2.2/bin/cert:44:in `<top (required)>'
    from /Users/retsohuang/.rvm/rubies/ruby-2.1.1/bin/cert:23:in `load'
    from /Users/retsohuang/.rvm/rubies/ruby-2.1.1/bin/cert:23:in `<main>'
    from /Users/retsohuang/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
    from /Users/retsohuang/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'

unable to load certificate error message

Hey!

When i try to use cert i get the following error message. when i try to run "cert --development", i get the same error.

cert create --development -u [email protected]
[10:59:09]: Starting login
[10:59:12]: Successfully logged in
unable to load certificate
951:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:/SourceCache/OpenSSL098/OpenSSL098-52.30.1/src/crypto/asn1/tasn_dec.c:1341:
951:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error:/SourceCache/OpenSSL098/OpenSSL098-52.30.1/src/crypto/asn1/tasn_dec.c:385:Type=X509
[10:59:16]: 
/Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.11.1/lib/fastlane_core/cert_checker.rb:33:in `rescue in sha1_fingerprint': Error parsing certificate './PNZWM99FXV.cer' (RuntimeError)
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.11.1/lib/fastlane_core/cert_checker.rb:27:in `sha1_fingerprint'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.11.1/lib/fastlane_core/cert_checker.rb:8:in `is_installed?'
    from /Library/Ruby/Gems/2.0.0/gems/cert-0.3.0/lib/cert/cert_runner.rb:31:in `block in find_existing_cert'
    from /Library/Ruby/Gems/2.0.0/gems/cert-0.3.0/lib/cert/cert_runner.rb:28:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/cert-0.3.0/lib/cert/cert_runner.rb:28:in `find_existing_cert'
    from /Library/Ruby/Gems/2.0.0/gems/cert-0.3.0/lib/cert/cert_runner.rb:16:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/cert-0.3.0/lib/cert/cert_runner.rb:4:in `launch'
    from /Library/Ruby/Gems/2.0.0/gems/cert-0.3.0/bin/cert:34:in `block (2 levels) in run'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.4/lib/commander/command.rb:178:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.4/lib/commander/command.rb:178:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.4/lib/commander/command.rb:153:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.4/lib/commander/runner.rb:428:in `run_active_command'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.4/lib/commander/runner.rb:68:in `run!'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.4/lib/commander/delegates.rb:15:in `run!'
    from /Library/Ruby/Gems/2.0.0/gems/cert-0.3.0/bin/cert:40:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/cert-0.3.0/bin/cert:46:in `<top (required)>'
    from /usr/bin/cert:23:in `load'
    from /usr/bin/cert:23:in `<main>'

Force to download a certificate with fastlane

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

Undefined method `strip' for nil:NilClass

I use to set up username field in cert action and DELIVER_PASSWORD as env variables in Jenkins machine and everything worked perfectly, but with one of the latest update I start getting following error:

[12:58:45]: ------------------
[12:58:45]: --- Step: cert ---
[12:58:45]: ------------------
No username or password given. You can set environment variables:
DELIVER_USER, DELIVER_PASSWORD
-------------------------------------------------------------------------------------
The login information you enter will be stored in your Mac OS Keychain
More information about that on GitHub: https://github.com/fastlane/CredentialsManager
-------------------------------------------------------------------------------------
Username: [12:58:45]: undefined method `strip' for nil:NilClass
[12:58:45]: You passed invalid parameters to 'cert'.
[12:58:45]: Check out the error below and available options by running `fastlane action cert`
[12:58:45]: Variable Dump:
[12:58:45]: {:DEFAULT_PLATFORM=>:ios, :ENVIRONMENT=>nil, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios build_dev", :VERSION_NUMBER=>"1.0.0", :BUILD_NUMBER=>0}
[12:58:45]: Invalid default value for username, doesn't match verify_block

Private Keys are named Imported Private Key

Don't know if there is a way to solve this but private keys are given the name Imported Private Key. A more descriptive name like the one from the certificate would make it easier to find in keychain.

Issue downloading/creating development certificates when user has 'Member' role

When running cert through fastlane using a developer account that has the 'Member' role, cert errors out with a 404 error.

FATAL [2015-03-25 12:17:41.02]: 404 Not Found
FATAL [2015-03-25 12:17:41.02]: fastlane finished with errors
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:353:in `open_http': 404 Not Found (OpenURI::HTTPError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:709:in `buffer_open'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:210:in `block in open_loop'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:208:in `catch'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:208:in `open_loop'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:149:in `open_uri'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:689:in `open'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:34:in `open'
from /Library/Ruby/Gems/2.0.0/gems/cert-0.1.3/lib/cert/developer_center.rb:125:in `download_url'
from /Library/Ruby/Gems/2.0.0/gems/cert-0.1.3/lib/cert/developer_center.rb:42:in `block in find_existing_cert'
from /Library/Ruby/Gems/2.0.0/gems/cert-0.1.3/lib/cert/developer_center.rb:36:in `each'
from /Library/Ruby/Gems/2.0.0/gems/cert-0.1.3/lib/cert/developer_center.rb:36:in `find_existing_cert'
from /Library/Ruby/Gems/2.0.0/gems/cert-0.1.3/lib/cert/developer_center.rb:16:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cert-0.1.3/lib/cert/cert_runner.rb:4:in `run'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-0.2.1/lib/fastlane/actions/cert.rb:29:in `block in run'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-0.2.1/lib/fastlane/actions/cert.rb:15:in `chdir'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-0.2.1/lib/fastlane/actions/cert.rb:15:in `run'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-0.2.1/lib/fastlane/fast_file.rb:83:in `block (2 levels) in method_missing'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-0.2.1/lib/fastlane/actions/actions_helper.rb:29:in `execute_action'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-0.2.1/lib/fastlane/fast_file.rb:82:in `block in method_missing'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-0.2.1/lib/fastlane/fast_file.rb:81:in `chdir'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-0.2.1/lib/fastlane/fast_file.rb:81:in `method_missing'
from (eval):33:in `block (2 levels) in parse'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-0.2.1/lib/fastlane/runner.rb:18:in `call'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-0.2.1/lib/fastlane/runner.rb:18:in `block in execute'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-0.2.1/lib/fastlane/runner.rb:12:in `chdir'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-0.2.1/lib/fastlane/runner.rb:12:in `execute'
from /Library/Ruby/Gems/2.0.0/gems/fastlane_env_lanes-0.1.3/lib/fastlane_env_lanes.rb:51:in `execute'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-0.2.1/lib/fastlane/lane_manager.rb:29:in `block in cruise_lanes'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-0.2.1/lib/fastlane/lane_manager.rb:28:in `each'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-0.2.1/lib/fastlane/lane_manager.rb:28:in `cruise_lanes'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-0.2.1/bin/fastlane:32:in `block (2 levels) in run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.0/lib/commander/command.rb:179:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.0/lib/commander/command.rb:179:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.0/lib/commander/command.rb:154:in `run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.0/lib/commander/runner.rb:421:in `run_active_command'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.0/lib/commander/runner.rb:81:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.0/lib/commander/delegates.rb:15:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-0.2.1/bin/fastlane:60:in `run'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-0.2.1/bin/fastlane:64:in `<top (required)>'
from /usr/bin/fastlane:23:in `load'
from /usr/bin/fastlane:23:in `<main>'

Changing the user's role to Admin fixes the issue. This occurred while attempting to run cert for a development certificate for a new user that did not previously have a development certificate created.

Is the cert process downloading all certificates to check against, including distribution certificates, that's causing issues when a user has 'Member' permissions in the developer portal?

Error when contacting https://developerservices2.apple.com/services/QH65B2/listTeams.action "Your session has expired. Please log in."

My fastlane set up has always worked. But after today, it's failing on the cert step. The full error looks like this:

[19:46:48]: {"responseId"=>"f66a3c47-d45c-44a1-b38a-c855ce2053f5", "resultCode"=>1100, "resultString"=>"authentication.failed", "userString"=>"Your session has expired.  Please log in.", "creationTimestamp"=>"2015-10-22T18:46:46Z", "protocolVersion"=>"QH65B2", "requestId"=>nil, "userLocale"=>"en_US", "requestUrl"=>"https://developerservices2.apple.com/services/QH65B2/listTeams.action", "httpCode"=>200}

I tried looking everywhere for this error but it doesn't make any sense for me. What do I have to do? What does this mean?

Default behavior with force flag set to false?

While running cert on a new machine (I forgot to provision it with certificate) I noticed that that cert created a new certificate with force flag set to false.
Is there a way to tell cert to fail unless certificate + matching private key exists (locally or remotely) instead of creating a new certificate for my private key?
Thanks!

undefined method `message'

Hi, i get this error when i use cert in bamboo. if i run from a normal shell everything runs without problems. Any ideia?

Fastfile:141:in `block (2 levels) in parsing_binding': undefined method `message' for #<Hash:0x007f94e4b1c648> (NoMethodError)
from /Users/bamboo/.gems/gems/fastlane-1.50.0/lib/fastlane/runner.rb:66:in `call'
from /Users/bamboo/.gems/gems/fastlane-1.50.0/lib/fastlane/runner.rb:66:in `block in execute'
from /Users/bamboo/.gems/gems/fastlane-1.50.0/lib/fastlane/runner.rb:62:in `chdir'
from /Users/bamboo/.gems/gems/fastlane-1.50.0/lib/fastlane/runner.rb:62:in `rescue in execute'
from /Users/bamboo/.gems/gems/fastlane-1.50.0/lib/fastlane/runner.rb:45:in `execute'
from /Users/bamboo/.gems/gems/fastlane-1.50.0/lib/fastlane/lane_manager.rb:46:in `cruise_lane'
from /Users/bamboo/.gems/gems/fastlane-1.50.0/lib/fastlane/command_line_handler.rb:30:in `handle'
from /Users/bamboo/.gems/gems/fastlane-1.50.0/bin/fastlane:37:in `block (2 levels) in run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
from /Users/bamboo/.gems/gems/fastlane-1.50.0/bin/fastlane:155:in `run'
from /Users/bamboo/.gems/gems/fastlane-1.50.0/bin/fastlane:161:in `<top (required)>'
from /Users/bamboo/.gems/bin/fastlane:23:in `load'
from /Users/bamboo/.gems/bin/fastlane:23:in `<main>'

[Enhancement] Update Cert to support developer profiles.

Looking through the source, it appears that cert currently only works with distribution profiles. It'd be great to update this with a --development flag, similar to sigh, to support creating certificates for all development targets.

403 forbidden downloading phantomjs

I've installed the gem for cert and upon execution, I'm unable to download phantomjs.

--2015-05-07 15:03:58--  https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-macosx.zip
Connecting to bitbucket.org (bitbucket.org)|131.103.20.167|:443... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: https://bbuseruploads.s3.amazonaws.com/ariya/phantomjs/downloads/phantomjs-1.9.8-macosx.zip?Signature=i1WMdmTab2ybZCOq%2BCxvsB5ASp0%3D&Expires=1431008925&AWSAccessKeyId=0EMWEFSGA12Z1HF1TZ82&response-content-disposition=attachment%3B%20filename%3D%22phantomjs-1.9.8-macosx.zip%22 [following]
--2015-05-07 15:03:59--  https://bbuseruploads.s3.amazonaws.com/ariya/phantomjs/downloads/phantomjs-1.9.8-macosx.zip?Signature=i1WMdmTab2ybZCOq+CxvsB5ASp0=&Expires=1431008925&AWSAccessKeyId=0EMWEFSGA12Z1HF1TZ82&response-content-disposition=attachment;%20filename=%22phantomjs-1.9.8-macosx.zip%22
Connecting to bbuseruploads.s3.amazonaws.com (bbuseruploads.s3.amazonaws.com)|54.231.15.25|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2015-05-07 15:03:59 ERROR 403: Forbidden.

Error: account_manager.rb:61:in `ask_for_login': uninitialized constant

I'm trying to run cert after installing the latest version via sudo gem install cert (v0.3.3), but whenever I log in with any of my 5 accounts, I'm seeing this error (with the correct password). I'm on Yosemite and using xcode 7.

Kevin-MBP:~ kevin$ cert
To not be asked about this value, you can specify it using 'username'
Your Apple ID Username: "[email protected]"

+-------------+---------------+
| Summary |
+-------------+---------------+
| development | false |
| username | [email protected] |
| output_path | . |
+-------------+---------------+

Starting login with user '[email protected]'

The login information you enter will be stored in your Mac OS Keychain
You can also pass the password using the FASTLANE_PASSWORD env variable

More information about it on GitHub: https://github.com/fastlane/CredentialsManager

Password (for [email protected]): **********
/Library/Ruby/Gems/2.0.0/gems/credentials_manager-0.8.3/lib/credentials_manager/account_manager.rb:61:in ask_for_login': uninitialized constant CredentialsManager::AccountManager::Helper (NameError) from /Library/Ruby/Gems/2.0.0/gems/credentials_manager-0.8.3/lib/credentials_manager/account_manager.rb:26:inpassword'
from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.11.4/lib/spaceship/client.rb:147:in login' from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.11.4/lib/spaceship/client.rb:51:inlogin'
from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.11.4/lib/spaceship/portal/spaceship.rb:22:in login' from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.11.4/lib/spaceship/portal/spaceship.rb:77:inlogin'
from /Library/Ruby/Gems/2.0.0/gems/cert-0.3.3/lib/cert/cert_runner.rb:14:in run' from /Library/Ruby/Gems/2.0.0/gems/cert-0.3.3/lib/cert/cert_runner.rb:4:inlaunch'
from /Library/Ruby/Gems/2.0.0/gems/cert-0.3.3/bin/cert:32:in block (2 levels) in run' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:incall'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in call' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:inrun'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in run_active_command' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:68:inrun!'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in run!' from /Library/Ruby/Gems/2.0.0/gems/cert-0.3.3/bin/cert:38:inrun'
from /Library/Ruby/Gems/2.0.0/gems/cert-0.3.3/bin/cert:44:in <top (required)>' from /usr/bin/cert:23:inload'
from /usr/bin/cert:23:in `

'

I get an error after downloading certificate.cer

INFO [2015-03-18 18:08:25.18]: Login successful
INFO [2015-03-18 18:08:27.26]: Downloading URL: 'https://developer.apple.com/account/ios/cert....'
INFO [2015-03-18 18:08:27.53]: Couldn't find an existing certificate... creating a new one
INFO [2015-03-18 18:08:27.86]: Creating a new code signing certificate
INFO [2015-03-18 18:08:29.92]: Creating a signing certificate for you.

1 key imported.
INFO [2015-03-18 18:08:30.10]: Successfully generated .certSigningRequest at path '/tmp/cert/CertCertificateSigningRequest.certSigningRequest'
INFO [2015-03-18 18:08:30.10]: Uploading the cert signing request '/tmp/cert/CertCertificateSigningRequest.certSigningRequest'
DEBUG [2015-03-18 18:08:34.14]: Waiting for iTC to generate the profile
DEBUG [2015-03-18 18:08:36.14]: Waiting for iTC to generate the profile
DEBUG [2015-03-18 18:08:38.15]: Waiting for iTC to generate the profile
DEBUG [2015-03-18 18:08:40.15]: Waiting for iTC to generate the profile
DEBUG [2015-03-18 18:08:42.16]: Waiting for iTC to generate the profile
DEBUG [2015-03-18 18:08:44.16]: Waiting for iTC to generate the profile
DEBUG [2015-03-18 18:08:46.16]: Waiting for iTC to generate the profile
INFO [2015-03-18 18:08:48.17]: Downloading newly generated certificate
INFO [2015-03-18 18:08:50.17]: Downloading URL: 'https://developer.apple.com/account/ios/cer....'
INFO [2015-03-18 18:08:50.47]: Successfully downloaded latest .cer file to '/tmp/cert/certificate.cer'
1 certificate imported.
/Library/Ruby/Gems/2.0.0/gems/cert-0.1.3/lib/cert/cert_runner.rb:7:in `run': Could not find the newly generated certificate installed (RuntimeError)
    from /Library/Ruby/Gems/2.0.0/gems/cert-0.1.3/bin/cert:34:in `block (2 levels) in run'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.0/lib/commander/command.rb:179:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.0/lib/commander/command.rb:179:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.0/lib/commander/command.rb:154:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.0/lib/commander/runner.rb:421:in `run_active_command'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.0/lib/commander/runner.rb:81:in `run!'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.0/lib/commander/delegates.rb:15:in `run!'
    from /Library/Ruby/Gems/2.0.0/gems/cert-0.1.3/bin/cert:40:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/cert-0.1.3/bin/cert:44:in `<top (required)>'
    from /usr/bin/cert:23:in `load'
    from /usr/bin/cert:23:in `<main>'

Both cert and cert --development gets this error.
Anyone know why?

Incorrect environment variables

In the help message when I run cert it gives me

INFO [2015-02-18 11:37:23.31]: Login into iOS Developer Center
No username or password given. You can set environment variables:
DELIVER_USER, DELIVER_PASSWORD

But in the documentation it says use environment variables
CERT_USER and CERT_PASSWORD

The info is conflicting, perhaps both work?

Enabling --trace creates a crash

It looks like a recent change squelches errors unless --trace is added based on the help text. Unfortunately, adding --trace to cert version 0.3.1 is causing a crash with the following stack trace:

fastlane_core-0.15.1/lib/fastlane_core/configuration/configuration.rb:51:in `block in verify_value_exists': Could not find option 'trace' in the list of available options: development, username, team_id, output_path, keychain_path, signing_request_path (RuntimeError)
    from /Users/test/.gem/ruby/2.0.0/gems/fastlane_core-0.15.1/lib/fastlane_core/configuration/configuration.rb:46:in `each'
    from /Users/test/.gem/ruby/2.0.0/gems/fastlane_core-0.15.1/lib/fastlane_core/configuration/configuration.rb:46:in `verify_value_exists'
    from /Users/test/.gem/ruby/2.0.0/gems/fastlane_core-0.15.1/lib/fastlane_core/configuration/configuration.rb:31:in `initialize'
    from /Users/test/.gem/ruby/2.0.0/gems/fastlane_core-0.15.1/lib/fastlane_core/configuration/configuration.rb:19:in `new'
    from /Users/test/.gem/ruby/2.0.0/gems/fastlane_core-0.15.1/lib/fastlane_core/configuration/configuration.rb:19:in `create'
    from /Users/test/.gem/ruby/2.0.0/gems/cert-0.3.1/bin/cert:31:in `block (2 levels) in run'
    from /Users/test/.gem/ruby/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Users/test/.gem/ruby/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Users/test/.gem/ruby/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
    from /Users/test/.gem/ruby/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
    from /Users/test/.gem/ruby/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'
    from /Users/test/.gem/ruby/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
    from /Users/test/.gem/ruby/2.0.0/gems/cert-0.3.1/bin/cert:38:in `run'
    from /Users/test/.gem/ruby/2.0.0/gems/cert-0.3.1/bin/cert:44:in `<top (required)>'
    from /Users/test/.gem/ruby/2.0.0/bin/cert:23:in `load'
    from /Users/test/.gem/ruby/2.0.0/bin/cert:23:in `<main>'

CERT_TEAM_ID doesn't accept team ID or Team Name

Cert team ID doesn't actually accept a team ID. I've tried with team ID and team name.

This is the same issue we had with produce I believe. Team ID in html is not the same as the ID on the account page. Basically need same fix for this module potentially.

`api_key': undefined method `length' for nil:NilClass

I am unable to run cert standalone. All my gem versions are up to date. I receive this error... Am I missing something?

:~$ cert -u "[email protected]"
[15:14:07]: Starting login
/Library/Ruby/Gems/2.0.0/gems/spaceship-0.4.0/lib/spaceship/portal/portal_client.rb:25:in api_key': undefined methodlength' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.4.0/lib/spaceship/portal/portal_client.rb:38:in send_login_request' from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.4.0/lib/spaceship/client.rb:150:inlogin'
from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.4.0/lib/spaceship/client.rb:48:in login' from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.4.0/lib/spaceship/portal/spaceship.rb:22:inlogin'
from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.4.0/lib/spaceship/portal/spaceship.rb:77:in login' from /Library/Ruby/Gems/2.0.0/gems/cert-0.3.0/lib/cert/cert_runner.rb:12:inrun'
from /Library/Ruby/Gems/2.0.0/gems/cert-0.3.0/lib/cert/cert_runner.rb:4:in launch' from /Library/Ruby/Gems/2.0.0/gems/cert-0.3.0/bin/cert:34:inblock (2 levels) in run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in call' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:incall'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in run' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:inrun_active_command'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in run!' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:inrun!'
from /Library/Ruby/Gems/2.0.0/gems/cert-0.3.0/bin/cert:40:in run' from /Library/Ruby/Gems/2.0.0/gems/cert-0.3.0/bin/cert:46:in<top (required)>'
from /usr/bin/cert:23:in load' from /usr/bin/cert:23:in

'

Could not find the newly generated certificate installed

Anyone is having this issue?:

INFO [2016-02-15 14:12:37.93]: Successfully logged in
INFO [2016-02-15 14:12:43.82]: $ security import /Users/an/Developer/*****.p12 -k '/Users/an/Library/Keychains/login.keychain' -T /usr/bin/codesign -T /usr/bin/security
security: SecKeychainItemImport: The specified item already exists in the keychain.
INFO [2016-02-15 14:12:43.92]: $ security import /Users/an/Developer/*****.cer -k '/Users/an/Library/Keychains/login.keychain' -T /usr/bin/codesign -T /usr/bin/security
security: SecKeychainItemImport: The specified item already exists in the keychain.
INFO [2016-02-15 14:12:43.96]: Found the cached certificate ***** (*****). Using this one.
INFO [2016-02-15 14:12:46.21]: Verifying the certificated is properly installed locally...
/Users/an/.rvm/gems/ruby-2.2.4/gems/fastlane_core-0.36.4/lib/fastlane_core/ui/interface.rb:132:in `user_error!': [!] Could not find the newly generated certificate installed (FastlaneCore::Interface::FastlaneError)
    from /Users/an/.rvm/gems/ruby-2.2.4/gems/fastlane_core-0.36.4/lib/fastlane_core/ui/ui.rb:14:in `method_missing'
    from /Users/an/.rvm/gems/ruby-2.2.4/gems/cert-1.3.0/lib/cert/runner.rb:10:in `launch'
    from /Users/an/.rvm/gems/ruby-2.2.4/gems/cert-1.3.0/bin/cert:33:in `block (2 levels) in run'
    from /Users/an/.rvm/gems/ruby-2.2.4/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Users/an/.rvm/gems/ruby-2.2.4/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Users/an/.rvm/gems/ruby-2.2.4/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
    from /Users/an/.rvm/gems/ruby-2.2.4/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
    from /Users/an/.rvm/gems/ruby-2.2.4/gems/fastlane_core-0.36.4/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'
    from /Users/an/.rvm/gems/ruby-2.2.4/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
    from /Users/an/.rvm/gems/ruby-2.2.4/gems/cert-1.3.0/bin/cert:39:in `run'
    from /Users/an/.rvm/gems/ruby-2.2.4/gems/cert-1.3.0/bin/cert:45:in `<top (required)>'
    from /Users/an/.rvm/gems/ruby-2.2.4/bin/cert:23:in `load'
    from /Users/an/.rvm/gems/ruby-2.2.4/bin/cert:23:in `<main>'
    from /Users/an/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in `eval'
    from /Users/an/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in `<main>'

Certificate not found

started getting this again:
Certificate XXX (YYY, Inc.) can't be found on your local computer
i have the keychain path set.
Where does fastlane actually look for certificates? (~/Library/Keychains/login.keychain?)

If you specify a wrong password cert won't request a new one

Not even if you run cert -u [email protected] again, it'll try to use the previous, wrong password! Cert should only store accepted passwords in Keychain but even then if a user changes the account's password and then cert fails to sign in it should ask for the password again.

Trace:

$ cert -u [email protected]
INFO [2015-03-04 14:12:50.19]: Login into iOS Developer Center
DEBUG [2015-03-04 14:13:19.65]: ["/Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/fastlane_core-0.2.1/lib/fastlane_core/developer_center/developer_center_helper.rb:63:in `wait_for_elements'", "/Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/fastlane_core-0.2.1/lib/fastlane_core/developer_center/developer_center.rb:102:in `login'", "/Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/fastlane_core-0.2.1/lib/fastlane_core/developer_center/developer_center.rb:52:in `initialize'", "/Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/cert-0.1.0/lib/cert/cert_runner.rb:4:in `new'", "/Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/cert-0.1.0/lib/cert/cert_runner.rb:4:in `run'", "/Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/cert-0.1.0/bin/cert:34:in `block (2 levels) in run'", "/Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/commander-4.2.1/lib/commander/command.rb:180:in `call'", "/Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/commander-4.2.1/lib/commander/command.rb:180:in `call'", "/Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/commander-4.2.1/lib/commander/command.rb:155:in `run'", "/Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/commander-4.2.1/lib/commander/runner.rb:421:in `run_active_command'", "/Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/commander-4.2.1/lib/commander/runner.rb:81:in `run!'", "/Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/commander-4.2.1/lib/commander/delegates.rb:8:in `run!'", "/Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/cert-0.1.0/bin/cert:51:in `run'", "/Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/cert-0.1.0/bin/cert:55:in `<top (required)>'", "/Users/localuser/.rbenv/versions/2.1.5/bin/cert:23:in `load'", "/Users/localuser/.rbenv/versions/2.1.5/bin/cert:23:in `<main>'"]
DEBUG [2015-03-04 14:13:19.65]: Couldn't find '.ios.profiles.gridList' after waiting for quite some time
/Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/fastlane_core-0.2.1/lib/fastlane_core/developer_center/developer_center.rb:109:in `rescue in login': Error logging in user [email protected] with the given password. Make sure you entered them correctly. (FastlaneCore::DeveloperCenter::DeveloperCenterLoginError)
    from /Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/fastlane_core-0.2.1/lib/fastlane_core/developer_center/developer_center.rb:101:in `login'
    from /Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/fastlane_core-0.2.1/lib/fastlane_core/developer_center/developer_center.rb:52:in `initialize'
    from /Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/cert-0.1.0/lib/cert/cert_runner.rb:4:in `new'
    from /Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/cert-0.1.0/lib/cert/cert_runner.rb:4:in `run'
    from /Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/cert-0.1.0/bin/cert:34:in `block (2 levels) in run'
    from /Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/commander-4.2.1/lib/commander/command.rb:180:in `call'
    from /Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/commander-4.2.1/lib/commander/command.rb:180:in `call'
    from /Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/commander-4.2.1/lib/commander/command.rb:155:in `run'
    from /Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/commander-4.2.1/lib/commander/runner.rb:421:in `run_active_command'
    from /Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/commander-4.2.1/lib/commander/runner.rb:81:in `run!'
    from /Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/commander-4.2.1/lib/commander/delegates.rb:8:in `run!'
    from /Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/cert-0.1.0/bin/cert:51:in `run'
    from /Users/localuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/cert-0.1.0/bin/cert:55:in `<top (required)>'
    from /Users/localuser/.rbenv/versions/2.1.5/bin/cert:23:in `load'
    from /Users/localuser/.rbenv/versions/2.1.5/bin/cert:23:in `<main>'

cert is not creating the private key

I tried to create a distribution certificate via cert on a brand new Apple Developer Account.

cert created the distribution file but the private key is missing. I have to do it the "normal" way now 😢

--development and existing distribution certificate

Hello,

There is an issue with the -d option when an existing distribution certificate is installed.
Cert finds the local distribution certificate, and does not create a development certificate.

Also, after the removal of the distribution certificate (in order to create the dev certificate through Cert), this error occurs :
[10:47:43]: Starting login
[10:47:46]: Successfully logged in
[10:47:54]: Couldn't find an existing certificate... creating a new one
[10:47:55]: Could not create another certificate, reached the maximum number of available certificates.
-> ""resultString"=>"You already have a current iOS Distribution certificate or a pending certificate request."

The licence has not reached the maximum number, I am able to manually create the dev certificate.

Option to specify existing Private Key

Add option to specify that cert uses an existing private key in the keychain.

This allows to use lifecycle managed private keys without incurring in generating and having to eventually dispose of many auto-generated keys at different times.

Also, would allow users to pick their named private keys from the keychain instead of ending with the "Imported Private Key"s.

Cannot create or retrieve development cert on new apple Enterprise team

cert has worked on all my teams so far as expected, creating or retrieving distribution or development certs depending on if the "-d" flag is used.

I have a new apple Enterprise team I was invited to giving problems. I'm not sure why it is unique, because it is a new account or an enterprise account. It already had a single Distribution cert present, by default or because a team member created it.

Whether I do "cert" or "cert -d" on this account it always returns the following msg about the distribution certificate:
"Found the certificate XXXXXXXX (XXXX Corporation) which is installed on the local machine. Using this one."
I believe the first time it was able to retrieve it for me though.

It wouldn't create the new development certificate for me. XCode was able to automatically create the cert for me (and add my device id to the portal) the first time I tried to do a build. After this, the cert program still would not notice this Development cert. It still mentions the Distribution Cert id whether I use the flag or not.

This is odd, because all my other existing accounts recognize the dist/dev distinction and act appropriately.

EDIT: I see from other issues now that this is a known issue of Enterprise accounts

Problem with latest version when used from fastlane

Updating to the latest version 0.1.1 causes the following crash when used from fastlane.

The Fastfile is super simple:

lane :mylane do
  cert
end

Stack trace:

INFO [2015-03-09 11:11:21.33]: Driving the lane 'crashlytics'
INFO [2015-03-09 11:11:21.33]: ------------------
INFO [2015-03-09 11:11:21.33]: --- Step: cert ---
INFO [2015-03-09 11:11:21.33]: ------------------
INFO [2015-03-09 11:11:22.76]: Variable Dump:
INFO [2015-03-09 11:11:22.76]: {:ENVIRONMENT=>nil, :LANE_NAME=>:crashlytics}
FATAL [2015-03-09 11:11:22.76]: wrong number of arguments (0 for 1)
FATAL [2015-03-09 11:11:22.76]: fastlane finished with errors
/Users/lm/.rvm/gems/ruby-2.1.4/gems/cert-0.1.1/lib/cert/cert_runner.rb:3:in `run': wrong number of arguments (0 for 1) (ArgumentError)
    from /Users/lm/.rvm/gems/ruby-2.1.4/gems/fastlane-0.1.17/lib/fastlane/actions/cert.rb:17:in `block in run'
    from /Users/lm/.rvm/gems/ruby-2.1.4/gems/fastlane-0.1.17/lib/fastlane/actions/cert.rb:14:in `chdir'
    from /Users/lm/.rvm/gems/ruby-2.1.4/gems/fastlane-0.1.17/lib/fastlane/actions/cert.rb:14:in `run'
    from /Users/lm/.rvm/gems/ruby-2.1.4/gems/fastlane-0.1.17/lib/fastlane/fast_file.rb:83:in `block (2 levels) in method_missing'
    from /Users/lm/.rvm/gems/ruby-2.1.4/gems/fastlane-0.1.17/lib/fastlane/actions/actions_helper.rb:29:in `execute_action'
    from /Users/lm/.rvm/gems/ruby-2.1.4/gems/fastlane-0.1.17/lib/fastlane/fast_file.rb:82:in `block in method_missing'
    from /Users/lm/.rvm/gems/ruby-2.1.4/gems/fastlane-0.1.17/lib/fastlane/fast_file.rb:81:in `chdir'
    from /Users/lm/.rvm/gems/ruby-2.1.4/gems/fastlane-0.1.17/lib/fastlane/fast_file.rb:81:in `method_missing'
    from (eval):31:in `block (2 levels) in parse'
    from /Users/lm/.rvm/gems/ruby-2.1.4/gems/fastlane-0.1.17/lib/fastlane/runner.rb:18:in `call'
    from /Users/lm/.rvm/gems/ruby-2.1.4/gems/fastlane-0.1.17/lib/fastlane/runner.rb:18:in `block in execute'
    from /Users/lm/.rvm/gems/ruby-2.1.4/gems/fastlane-0.1.17/lib/fastlane/runner.rb:12:in `chdir'
    from /Users/lm/.rvm/gems/ruby-2.1.4/gems/fastlane-0.1.17/lib/fastlane/runner.rb:12:in `execute'
    from /Users/lm/.rvm/gems/ruby-2.1.4/gems/fastlane-0.1.17/lib/fastlane/lane_manager.rb:29:in `block in cruise_lanes'
    from /Users/lm/.rvm/gems/ruby-2.1.4/gems/fastlane-0.1.17/lib/fastlane/lane_manager.rb:28:in `each'
    from /Users/lm/.rvm/gems/ruby-2.1.4/gems/fastlane-0.1.17/lib/fastlane/lane_manager.rb:28:in `cruise_lanes'
    from /Users/lm/.rvm/gems/ruby-2.1.4/gems/fastlane-0.1.17/bin/fastlane:32:in `block (2 levels) in run'
    from /Users/lm/.rvm/gems/ruby-2.1.4@global/gems/commander-4.3.0/lib/commander/command.rb:179:in `call'
    from /Users/lm/.rvm/gems/ruby-2.1.4@global/gems/commander-4.3.0/lib/commander/command.rb:179:in `call'
    from /Users/lm/.rvm/gems/ruby-2.1.4@global/gems/commander-4.3.0/lib/commander/command.rb:154:in `run'
    from /Users/lm/.rvm/gems/ruby-2.1.4@global/gems/commander-4.3.0/lib/commander/runner.rb:421:in `run_active_command'
    from /Users/lm/.rvm/gems/ruby-2.1.4@global/gems/commander-4.3.0/lib/commander/runner.rb:81:in `run!'
    from /Users/lm/.rvm/gems/ruby-2.1.4@global/gems/commander-4.3.0/lib/commander/delegates.rb:15:in `run!'
    from /Users/lm/.rvm/gems/ruby-2.1.4/gems/fastlane-0.1.17/bin/fastlane:60:in `run'
    from /Users/lm/.rvm/gems/ruby-2.1.4/gems/fastlane-0.1.17/bin/fastlane:64:in `<top (required)>'
    from /Users/lm/.rvm/gems/ruby-2.1.4/bin/fastlane:23:in `load'
    from /Users/lm/.rvm/gems/ruby-2.1.4/bin/fastlane:23:in `<main>'
    from /Users/lm/.rvm/gems/ruby-2.1.4/bin/ruby_executable_hooks:15:in `eval'
    from /Users/lm/.rvm/gems/ruby-2.1.4/bin/ruby_executable_hooks:15:in `<main>'

Could not find the newly generated certificate installed (RuntimeError) if WWDR Intermediate is missing

Title says it all, just noticed that cert fails if the WWDR intermediate certificate is not installed. This basically leads to security/Mac OS determining that the just created identity is not signed by a known authority, ultimately making cert fail.

[23:12:42]: Couldn't find an existing certificate... creating a new one
1 key imported.
1 certificate imported.
[23:12:44]: Successfully generated asdfasdf which was imported to the local machine.
/Users/xxx/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/cert-0.3.3/lib/cert/cert_runner.rb:7:in `launch': Could not find the newly generated certificate installed (RuntimeError)

[Enhancement] Add certificate alias as cert variable

Part of my current workflow requires the certificate alias. It'd be great to add another cert variable for storing this after either locating or installing the certificate.

I believe this could be achieved by using the java keytool to list the certificates and grepping for the current alias containing the CER_CERTIFICATE_ID that was just used.

e.g.

keytool -v -storetype KeychainStore -providerName Apple -keystore NONE -storepass NONE -list | grep ENV["CER_CERTIFICATE_ID]

Running the above yields:

Alias name: iphone developer: user name (certificate_id)

Unable to download Provisioning Profile

Since I updated all fastlane tools and with that cert to version 1.0.0 I am not able to download or fetch Provisioning Profiles from the Member Center. Cert gets an html answer saying 302 - found, but it stops with an error. My Fastfile looks like this:

lane :beta do
    cert
    sigh(force: true)
    ENV["PROFILE_UDID"] = lane_context[SharedValues::SIGH_UDID]
    gym(scheme: "my_scheme", workspace: "myWorkspace.xcworkspace", include_symbols: true)
    pilot
  end

Running fastlane beta gives me the following output:

 "�[37m[10:53:34]: �[0m�[32mDriving the lane 'ios beta' 🚀�[0m",
  "�[37m[10:53:34]: �[0m�[32m------------------�[0m",
  "�[37m[10:53:34]: �[0m�[32m--- �[0m�[32mStep: cert�[0m�[32m ---�[0m",
  "�[37m[10:53:34]: �[0m�[32m------------------�[0m",
  "",
  "+-------------+--------------------+",
  "|             Summary              |",
  "+-------------+--------------------+",
  "| development | false              |",
  "| username    | [email protected] |",
  "| output_path | .                  |",
  "+-------------+--------------------+",
  "",
  "�[37m[10:53:35]: �[0mStarting login with user '[email protected]'",
  "�[37m[10:53:37]: �[0mSuccessfully logged in",
  "�[37m[10:53:40]: �[0m�[32mFound the certificate 9T527HZKB8 (MyComp) which is installed on the local machine. Using this one.�[0m",
  "�[37m[10:53:41]: �[0m�[32mUse signing certificate '9T527HZKB8' from now on!�[0m",
  "�[37m[10:53:41]: �[0m�[32m------------------�[0m",
  "�[37m[10:53:41]: �[0m�[32m--- �[0m�[32mStep: sigh�[0m�[32m ---�[0m",
  "�[37m[10:53:41]: �[0m�[32m------------------�[0m",
  "",
  "+-------------------------------+--------------------+",
  "|               Summary for sigh 1.0.0               |",
  "+-------------------------------+--------------------+",
  "| adhoc                         | false              |",
  "| skip_install                  | false              |",
  "| development                   | false              |",
  "| force                         | true               |",
  "| app_identifier                | myIdentifier  |",
  "| username                      | [email protected] |",
  "| output_path                   | .                  |",
  "| cert_id                       | 9T527HZKB8         |",
  "| skip_fetch_profiles           | false              |",
  "| skip_certificate_verification | false              |",
  "+-------------------------------+--------------------+",
  "",
  "�[37m[10:53:41]: �[0mStarting login with user '[email protected]'",
  "�[37m[10:53:43]: �[0mSuccessfully logged in",
  "�[37m[10:53:43]: �[0mFetching profiles...",
  "�[37m[10:53:45]: �[0m�[33mNo existing profiles, creating a new one for you�[0m",
  "�[37m[10:53:45]: �[0m�[33mVariable Dump:�[0m",
  "�[37m[10:53:45]: �[0m{:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios beta", :CERT_FILE_PATH=>"./9T527HZKB8.cer", :CERT_CERTIFICATE_ID=>"9T527HZKB8"}",
  "�[1m�[31m[10:53:45]: �[0m�[0m<html>
",
  "<head><title>302 Found</title></head>
",
  "<body bgcolor="white">
",
  "<center><h1>302 Found</h1></center>
",
  "<hr><center>nginx</center>
",
  "</body>
",
  "</html>
",
  "",
  "",
  "+------+-------------------------------------+-------------+",
  "|                     �[32mfastlane summary�[0m                     |",
  "+------+-------------------------------------+-------------+",
  "| Step | Action                              | Time (in s) |",
  "+------+-------------------------------------+-------------+",
  "| 1    | Verifying required fastlane version | 0           |",
  "| 2    | default_platform                    | 0           |",
  "| 3    | cert                                | 6           |",
  "| 4    | sigh                                | 4           |",
  "+------+-------------------------------------+-------------+",
  "",
  "�[1m�[31m[10:53:45]: �[0m�[0m�[31mfastlane finished with errors�[0m",
  "�[33mSuccessfully submitted crash report. If this is a problem with one of the tools you want to report�[0m",
  "�[33mplease submit an issue on GitHub and attach the following number to it: 'e40e022f4a96ff6fe7da0edec843b490'�[0m",
  "�[33mAlso stored the crash report locally '/tmp/sentry_e40e022f4a96ff6fe7da0edec843b490.json'�[0m",
  "",
  "�[32m#######################################################################�[0m",
  "�[32m# fastlane 1.33.6 is available. You are on 1.33.5.�[0m",
  "�[32m# It is recommended to use the latest version.�[0m",
  "�[32m# Update using 'sudo gem update fastlane'.�[0m",
  "�[32m# To see what's new, open https://github.com/KrauseFx/fastlane/releases.�[0m",
  "�[32m#########

This did work before updating fastlane (using delivery instead of pilot, everything else is the same as before).

Can you spot any errors in my config or what could be the cause for this problem?

Member can't download generated development certificate

Hi

When I try to generate and get development certificate as a member of Enterprise Program, I get following error:

[13:51:47]: Login into iOS Developer Center
No username or password given. You can set environment variables:
DELIVER_USER, DELIVER_PASSWORD
-------------------------------------------------------------------------------------
The login information you enter will be stored in your Mac OS Keychain
More information about that on GitHub: https://github.com/fastlane/CredentialsManager
-------------------------------------------------------------------------------------
Username: ***
[13:52:21]: Login successful
[13:52:24]: Couldn't find an existing certificate... creating a new one
[13:52:25]: Creating a new code signing certificate
[13:52:27]: Creating a signing certificate for you.

1 key imported.
[13:52:27]: Successfully generated .certSigningRequest at path '/tmp/cert/CertCertificateSigningRequest.certSigningRequest'
[13:52:27]: Uploading the cert signing request '/tmp/cert/CertCertificateSigningRequest.certSigningRequest'
[13:52:31]: Downloading newly generated certificate
[13:52:54]: ["/usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/fastlane_core-0.7.6/lib/fastlane_core/developer_center/developer_center_helper.rb:63:in `wait_for_elements'", "/usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/cert-0.2.1/lib/cert/developer_center.rb:100:in `create_certificate'", "/usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/cert-0.2.1/lib/cert/developer_center.rb:21:in `run'", "/usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/cert-0.2.1/lib/cert/cert_runner.rb:4:in `run'", "/usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/cert-0.2.1/bin/cert:34:in `block (2 levels) in run'", "/usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/commander-4.3.4/lib/commander/command.rb:178:in `call'", "/usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/commander-4.3.4/lib/commander/command.rb:178:in `call'", "/usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/commander-4.3.4/lib/commander/command.rb:153:in `run'", "/usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/commander-4.3.4/lib/commander/runner.rb:428:in `run_active_command'", "/usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/commander-4.3.4/lib/commander/runner.rb:68:in `run!'", "/usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/commander-4.3.4/lib/commander/delegates.rb:15:in `run!'", "/usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/cert-0.2.1/bin/cert:40:in `run'", "/usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/cert-0.2.1/bin/cert:46:in `<top (required)>'", "/usr/local/var/rbenv/versions/2.2.1/bin/cert:23:in `load'", "/usr/local/var/rbenv/versions/2.2.1/bin/cert:23:in `<main>'"]
/usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/fastlane_core-0.7.6/lib/fastlane_core/developer_center/developer_center_helper.rb:54:in `wait_for': Couldn't find '.button.small.blue' after waiting for quite some time (FastlaneCore::DeveloperCenter::DeveloperCenterGeneralError)
    from /usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/fastlane_core-0.7.6/lib/fastlane_core/developer_center/developer_center_helper.rb:63:in `wait_for_elements'
    from /usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/cert-0.2.1/lib/cert/developer_center.rb:100:in `create_certificate'
    from /usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/cert-0.2.1/lib/cert/developer_center.rb:21:in `run'
    from /usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/cert-0.2.1/lib/cert/cert_runner.rb:4:in `run'
    from /usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/cert-0.2.1/bin/cert:34:in `block (2 levels) in run'
    from /usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/commander-4.3.4/lib/commander/command.rb:178:in `call'
    from /usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/commander-4.3.4/lib/commander/command.rb:178:in `call'
    from /usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/commander-4.3.4/lib/commander/command.rb:153:in `run'
    from /usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/commander-4.3.4/lib/commander/runner.rb:428:in `run_active_command'
    from /usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/commander-4.3.4/lib/commander/runner.rb:68:in `run!'
    from /usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/commander-4.3.4/lib/commander/delegates.rb:15:in `run!'
    from /usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/cert-0.2.1/bin/cert:40:in `run'
    from /usr/local/var/rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/cert-0.2.1/bin/cert:46:in `<top (required)>'
    from /usr/local/var/rbenv/versions/2.2.1/bin/cert:23:in `load'
    from /usr/local/var/rbenv/versions/2.2.1/bin/cert:23:in `<main>'

And following image is shown:

developercertificateconfirmation

Looks like DeveloperCenter searches for some blue button (maybe "Download"?), but can't find it.

Can cert just download the existing certificates?

I am using fastlane on a new computer onto which I have not yet downloaded the existing 3 distribution certificates. Now I could do that by hand. However, I would rather have fastlane do the job for me, so that I can manage my certificates via the Member Center and just use the toolchain to achieve nice builds.

Is this possible? From what I have read so far I would guess that cert can only create new ones and then download these. But since it is able to detect the existing distribution certificates for my team...

Certificate ABC (myTeam) can't be found on your local computer
Certificate DEF (myTeam) can't be found on your local computer
Certificate GHI (myTeam) can't be found on your local computer
Couldn't find an existing certificate... creating a new one
Could not create another certificate, reached the maximum number of available certificates.

...I would guess that this is generally possible.

Within Fastlane: Cert asks for the team id ignoring the Appfile

My Appfile contains a team_name as well as the team_id (uncommented).
In my Fastfile I run cert() before running sigh(adhoc: true).

I would expect, that I don't have to enter the Team in the prompt, however, when I run fastlane beta, I still get asked to specify the team:

[16:39:25]: ------------------
[16:39:25]: --- Step: cert ---
[16:39:25]: ------------------
[16:39:30]: Starting login
Multiple teams found, please enter the number of the team you want to use: 
1) XXXXXXX "SomeCompany Ltd." (Company/Organization)
2) YYYYYYY "John Doe" (Individual)
2
[16:50:52]: Successfully logged in

I plan to run fastlane soon on my CI environment, so a prompt like this won't be possible so I am wondering how to get rid of this prompt.

Find correct development certificate

We of cause multiple developers on our company developer account, but when I run

cert(development: true)

(I have set ENV["CERT_USERNAME"] and team_id before as well)

I get this:

14:00:36: --- Step: cert ---
14:00:36: ------------------
14:00:36: Starting login with user '[email protected]'
[14:00:38]: Successfully logged in
[14:00:41]: Certificate XXXXXXXX1 (N N) can't be found on your local computer
[14:00:43]: Certificate XXXXXXXX2 (N N) can't be found on your local computer
say 'Couldn't download provisioning profile, got this instead:
<title>302 Found</title>

302 Found



nginx


'

The problem is that it fails before it gets to my Certificate. I is very different how many entries it tries before it fails, or if it gets to find it, it doesn't fail. And the error states something about provisioning profile!?
I have crash reporting enabled.
How to get this to work?
And is it possible to specify something to select the correct one directly?

fastlane:

cert(development: true)
produce_app(false)
sigh(
development: true,
output_path: "./fastlane/certificates/")

Could not find the newly generated certificate installed

This may not be related to your tool, but I cant do anything with certs now since I started using it. I run it, and it says "Could not find the newly generated certificate installed" even though it finds a cached one. I try to manually import the .p12 and it says its already there. I am in some kind of a stalemate if you could give me some advice what to at least try?

thanks.

screen shot 2016-02-15 at 6 32 37 pm

screen shot 2016-02-15 at 6 35 31 pm

README outdated: sigh :force

I get the error:

You have to pass the options for 'sigh' in a different way. Please check out the current documentation on GitHub!

RSA Private Key given PKCS12 File Extension

I spent a few hours debugging an issue related to the generation of new signing identities using cert. Specifically, after a successful creation 3 new files are generated.

  • CertCertificateSigningRequest.certSigningRequest
  • XXXXXXXXX.cer
  • private_key.p12

The private_key.p12 does not appear to be a p12 (PKCS12) but a RSA Private Key. PKCS12, as a packaging format, when exported from Keychain Access tends to be a combination of the private key and the certificate generated by the CSR in PEM format.

The easiest fix here is probably to change the file extension to something more consistent with what is contained, say '.rsa'. A more complete fix might be to generate a p12 from the cert and the rsa private key in the same fashion that Keychain Access does.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.