Comments (7)
Hi!
Can you try to run berkshelf
in debug mode please?
berks vendor -d cookbooks
I successfully ran this command in my environment, same version of berkshelf
from pentest-env.
Maybe related but should be fixed in berkshelf 6.2.2: hxxps://github.com/berkshelf/berkshelf/issues/1718
from pentest-env.
berks
was not run with bundler
, try with:
bundle exec berks vendor
from pentest-env.
Macintosh:pentest-env [email protected]$ bundle exec berks vendor
Resolving cookbook dependencies...
Fetching 'couchdb' from https://github.com/sliim-cookbooks/couchdb-cookbook (at master)
Fetching 'network_interfaces' from https://github.com/sliim-cookbooks/network_interfaces (at fixes)
Fetching 'pentest-env' from source at cookbook
Fetching cookbook index from https://supermarket.getchef.com...
[2018-07-12T16:30:09-07:00] ERROR: SSL Validation failure connecting to host: supermarket.getchef.com - SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)
#<Thread:0x00007ff75d990820@/Users/[email protected]/Repos/pentest-env/vendor/bundle/ruby/2.5.0/gems/berkshelf-7.0.4/lib/berkshelf/installer.rb:21 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
8: from /Users/[email protected]/Repos/pentest-env/vendor/bundle/ruby/2.5.0/gems/berkshelf-7.0.4/lib/berkshelf/installer.rb:24:in block (2 levels) in build_universe' 7: from /Users/[email protected]/Repos/pentest-env/vendor/bundle/ruby/2.5.0/gems/berkshelf-7.0.4/lib/berkshelf/source.rb:85:in
build_universe'
6: from /Users/[email protected]/Repos/pentest-env/vendor/bundle/ruby/2.5.0/gems/berkshelf-7.0.4/lib/berkshelf/api_client/connection.rb:47:in universe' 5: from /Users/[email protected]/Repos/pentest-env/vendor/bundle/ruby/2.5.0/gems/berkshelf-7.0.4/lib/berkshelf/ridley_compat.rb:35:in
get'
4: from /Users/[email protected]/Repos/pentest-env/vendor/bundle/ruby/2.5.0/gems/chef-14.3.37/lib/chef/http.rb:115:in get' 3: from /Users/[email protected]/Repos/pentest-env/vendor/bundle/ruby/2.5.0/gems/chef-14.3.37/lib/chef/http.rb:149:in
request'
2: from /Users/[email protected]/Repos/pentest-env/vendor/bundle/ruby/2.5.0/gems/chef-14.3.37/lib/chef/http.rb:365:in send_http_request' 1: from /Users/[email protected]/Repos/pentest-env/vendor/bundle/ruby/2.5.0/gems/chef-14.3.37/lib/chef/http.rb:408:in
retrying_http_errors'
/Users/[email protected]/Repos/pentest-env/vendor/bundle/ruby/2.5.0/gems/chef-14.3.37/lib/chef/http.rb:451:in `rescue in retrying_http_errors': SSL Error connecting to https://supermarket.getchef.com/universe - SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate) (OpenSSL::SSL::SSLError)
OpenSSL::SSL::SSLError SSL Error connecting to https://supermarket.getchef.com/universe - SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)
Macintosh:pentest-env [email protected]$
from pentest-env.
On mac, try:
brew install curl-ca-bundle
export SSL_CERT_FILE='/usr/local/opt/curl-ca-bundle/share/ca-bundle.crt'
from pentest-env.
That didn't work, it's deprecated.
ruby -ropenssl -e "p OpenSSL::X509::DEFAULT_CERT_FILE"
export SSL_CERT_FILE=/usr/local/etc/openssl/cert.pem
And now I get this error:
Fetching cookbook index from https://supermarket.getchef.com...
Unable to satisfy the following requirements:
couchdb (= 0.0.0)
required byuser-specified dependency
Unable to find a solution for demands: apache2 (>= 0.0.0), apt (>= 0.0.0), aws (>= 0.0.0), beef (>= 0.0.0), bricks (>= 0.0.0), build-essential (>= 0.0.0), chef-server (>= 0.0.0), couchdb (0.0.0), database (>= 0.0.0), dvwa (>= 0.0.0), elite (>= 0.0.0), faraday (>= 0.0.0), gruyere (>= 0.0.0), hostname (>= 0.0.0), hostsfile (>= 0.0.0), kali (>= 0.0.0), mysql (>= 0.0.0), nessus (>= 0.0.0), network_interfaces (0.0.0), nexpose (>= 0.0.0), openssl (>= 0.0.0), pentest-env (1.1.0), pentester (>= 0.0.0), php (= 4.6.0), postgresql (>= 0.0.0), proxychains (>= 0.0.0), tor-full (>= 0.0.0), vicnum (>= 0.0.0), webgoat (>= 0.0.0), xfs (>= 0.0.0), xml (>= 0.0.0)
from pentest-env.
Ok, the SSL issue is now resolved.
Can you create an other issue about this error please? I will check that, cookbook dependencies surely require an update.. (Try removing the Berksfile.lock
if exists, then rerun your berks vendor
command, maybe this will fix this error, otherwise i will provide a fix this week end)
Thanks for reporting that!
from pentest-env.
Related Issues (20)
- Kali 2017.1
- Issues running rake HOT 3
- Vagrant 2.0
- Kali 2017.2
- need a kitchen.yaml file for the pentest-env HOT 1
- Instance info HOT 3
- Password HOT 3
- HTTP 404 Getting vagrant boxes HOT 2
- kali repository key expired HOT 2
- Omnitruck artifact does not exist for version on platform kali HOT 3
- `bundle exec berks vendor` breaks on dependencies HOT 4
- `vagrant provision` fails, after a successful `vagrant up` using tor-proxy.pentestrc HOT 3
- Support official Kali box
- ArgumentError "\x80\x00\x00\x00\e\xA3V\xC0" is not an octal string HOT 1
- Can't install vagrant plugin HOT 1
- NoMethodError: private method `select' called for nil:NilClass
- NoMethodError: private method `select' called for nil:NilClass HOT 2
- Chef version too old. HOT 1
- PULL REQUEST IDEA: Integration with GNS3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pentest-env.