title: Chef BERKSHELF3 proxy settings - Windows platform
body: <p>I just wanna know how to set proxy values(Url, user, password) for Berkshelf3 under windows platform when I launch the command >berks intall ?</p>
  
  <ul>
  <li><p>I already try in cmd command: <br/>
  http_proxy='<a href="http://xx.xx.xx.xx" rel="nofollow">http://xx.xx.xx.xx</a>' <br/>
  http_proxy_user=USERNAME <br/>
  http_proxy_pass=PASSWORD <br/></p></li>
  <li><p>The reamining issue:</p>
  
  <p>C:\chef-repo-distant\cookbooks\putty>berks install
  Resolving cookbook dependencies...
  Fetching 'putty' from source at .
  Fetching cookbook index from ttps://supermarket.getchef.com...
  C:/opscode/chefdk/embedded/lib/ruby/2.0.0/net/http.rb:918:in <code>connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certific
  ate verify failed (Faraday::SSLError)
          from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/net/http.rb:918:in</code>block in connect'
          from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/timeout.rb:66:in <code>timeout'
          from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/net/http.rb:918:in</code>connect'
          from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/net/http.rb:862:in <code>do_start'
          from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/net/http.rb:851:in</code>start'
          from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/net/http.rb:1367:in <code>request'
          from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/net/http.rb:1126:in</code>get'
          from C:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/faraday-0.9.0/lib/faraday/adapter/net_http.rb:78:in <code>perform_request'
          from C:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/faraday-0.9.0/lib/faraday/adapter/net_http.rb:39:in</code>call'
          from C:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/faraday-0.9.0/lib/faraday/request/retry.rb:87:in <code>call'
          from C:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in</code>call'
          from C:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in <code>call'
          from C:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/faraday-0.9.0/lib/faraday/rack_builder.rb:139:in</code>build_response'
          from C:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/faraday-0.9.0/lib/faraday/connection.rb:377:in <code>run_request'
          from C:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/faraday-0.9.0/lib/faraday/connection.rb:140:in</code>get'
          from C:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/berkshelf-api-client-1.2.0/lib/berkshelf/api_client/connection.rb:62:in <code>universe'
          from c:/opscode/chefdk/embedded/apps/berkshelf/lib/berkshelf/source.rb:22:in</code>build_universe'
          from c:/opscode/chefdk/embedded/apps/berkshelf/lib/berkshelf/installer.rb:21:in `block (2 levels) in build_universe'</p></li>
  </ul>
  
  <p>Thanks for the support!</p>
  
  <hr>
  
  <p>Try to follow all the fix I can find on the web but it didn't make it :(</p>
  
  <p>I use "source 'ttp://api.berkshelf.com" in my Berksfile <br/>
  And launch the command berks install in a powershell windows<br/></p>
  
  <p>WITHOUT the proxy set, I got: <br/> </p>
  
  <pre><code>Error retrieving universe from source: ttp://api.berkshelf.com
    * [Berkshelf::APIClient::TimeoutError] Unable to connect to: ttp://api.berkshelf.com
  </code></pre>
  
  <p>WITH the proxy set, I got: <br/> </p>
  
  <pre><code>Installing windows (1.34.2) from ttp://api.berkshelf.com ([opscode] ttp://supermarket.getchef.com/api/v1)
  E, [2014-09-01T18:27:50.775682 #13104] ERROR -- : Actor crashed!
  Faraday::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
          C:/opscode/chefdk/embedded/lib/ruby/2.0.0/net/http.rb:918:in `connect'
          C:/opscode/chefdk/embedded/lib/ruby/2.0.0/net/http.rb:918:in `block in connect'
          C:/opscode/chefdk/embedded/lib/ruby/2.0.0/timeout.rb:52:in `timeout'
          C:/opscode/chefdk/embedded/lib/ruby/2.0.0/net/http.rb:918:in `connect'
          C:/opscode/chefdk/embedded/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
          C:/opscode/chefdk/embedded/lib/ruby/2.0.0/net/http.rb:851:in `start'
          C:/opscode/chefdk/embedded/lib/ruby/2.0.0/net/http.rb:1367:in `request'
          C:/opscode/chefdk/embedded/lib/ruby/2.0.0/net/http.rb:1126:in `get'
          C:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/faraday-0.9.0/lib/faraday/adapter/net_http.rb:78:in `perform
  _request'
  </code></pre>
  
  <p>I'm desperate to solve this issue :(</p>
  
  <hr>
  
  <p>Yeah, it works I'll have to add 3 certificates retrieve from IE to the <b>cacert.pem</b> !!!
  Great ;) 
  <br/>Thanks Tensibai ;)</p>