Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

SSL error #11

Closed
bbguitar opened this issue Jul 16, 2012 · 3 comments
Closed

SSL error #11

bbguitar opened this issue Jul 16, 2012 · 3 comments

Comments

@bbguitar
Copy link

I get an error when trying to access a list of profiles (or anything for that matter).

Using rvm'd ruby 1.9.3-p194 on Snow Leopard.

% ios profiles

error: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. Use --trace to view backtrace

with trace..

.......gems/net-http-persistent-2.7/lib/net/http/persistent/ssl_reuse.rb:70:in connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError) from /Users/xxxxxxx/.rvm/gems/ruby-1.9.3-p194/gems/net-http-persistent-2.7/lib/net/http/persistent/ssl_reuse.rb:70:inblock in connect'

Suggestions as to how to fix this.. google did not come up with an easy solution.

@dehy
Copy link

dehy commented Jul 17, 2012

same here : ruby 1.9.3-p194 via rvm on 10.7.4

Please notice I belong to multiple dev teams in the dev center.

dehys-macbook-air:~ arnaud$ ios profiles:list
error: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. Use --trace to view backtrace
dehys-macbook-air:~ arnaud$ ios --trace profiles:list
/Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/net-http-persistent-2.7/lib/net/http/persistent/ssl_reuse.rb:70:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
    from /Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/net-http-persistent-2.7/lib/net/http/persistent/ssl_reuse.rb:70:in `block in connect'
    from /Users/arnaud/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/timeout.rb:54:in `timeout'
    from /Users/arnaud/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/timeout.rb:99:in `timeout'
    from /Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/net-http-persistent-2.7/lib/net/http/persistent/ssl_reuse.rb:70:in `connect'
    from /Users/arnaud/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:755:in `do_start'
    from /Users/arnaud/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:750:in `start'
    from /Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/net-http-persistent-2.7/lib/net/http/persistent.rb:511:in `connection_for'
    from /Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/net-http-persistent-2.7/lib/net/http/persistent.rb:806:in `request'
    from /Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/mechanize-2.5.1/lib/mechanize/http/agent.rb:258:in `fetch'
    from /Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/mechanize-2.5.1/lib/mechanize.rb:407:in `get'
    from /Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/cupertino-0.4.0/lib/cupertino/provisioning_portal/agent.rb:20:in `block in get'
    from /Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/cupertino-0.4.0/lib/cupertino/provisioning_portal/agent.rb:19:in `times'
    from /Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/cupertino-0.4.0/lib/cupertino/provisioning_portal/agent.rb:19:in `get'
    from /Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/cupertino-0.4.0/lib/cupertino/provisioning_portal/agent.rb:135:in `list_profiles'
    from /Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/cupertino-0.4.0/lib/cupertino/provisioning_portal/commands/profiles.rb:8:in `block (3 levels) in <top (required)>'
    from /Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/cupertino-0.4.0/lib/cupertino/provisioning_portal/helpers.rb:44:in `try'
    from /Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/cupertino-0.4.0/lib/cupertino/provisioning_portal/commands/profiles.rb:8:in `block (2 levels) in <top (required)>'
    from /Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/commander-4.1.2/lib/commander/command.rb:180:in `call'
    from /Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/commander-4.1.2/lib/commander/command.rb:180:in `call'
    from /Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/commander-4.1.2/lib/commander/command.rb:155:in `run'
    from /Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/commander-4.1.2/lib/commander/runner.rb:402:in `run_active_command'
    from /Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/commander-4.1.2/lib/commander/runner.rb:78:in `run!'
    from /Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/commander-4.1.2/lib/commander/delegates.rb:11:in `run!'
    from /Users/arnaud/.rvm/gems/ruby-1.9.3-p194/gems/commander-4.1.2/lib/commander/import.rb:10:in `block in <top (required)>'

@mattt
Copy link
Contributor

mattt commented Jul 18, 2012

This is a bug in Ruby 1.9 under certain circumstances where certificate authority root certs aren't found. See this blog post for more details and suggestions on how to fix it.

@mattt mattt closed this as completed Jul 18, 2012
@bbguitar
Copy link
Author

This should not be closed yet as the link explains the problem but does bot explain how to fix it for cupertino but for problems in general and even then it's hacking around in other files.

For my solution I added Arne Brasseur's grist https://gist.github.com/2659619 to the beginning of the ios script.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants