Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to verify SSL certificate installing Chef DK #377

Open
qaisbadsha opened this issue Oct 27, 2018 · 1 comment
Open

Failed to verify SSL certificate installing Chef DK #377

qaisbadsha opened this issue Oct 27, 2018 · 1 comment
Labels
Type: Bug Does not work as expected.

Comments

@qaisbadsha
Copy link

I am trying to follow the tutorials and running this command on Centos:

curl -k https://omnitruck.chef.io/install.sh | bash -s -- -P chefdk -c stable -v 2.5.3
And I get this:

Getting information for chefdk stable 2.5.3 for el...
downloading https://omnitruck.chef.io/stable/chefdk/metadata?v=2.5.3&p=el&pv=7&m=x86_64
  to file /tmp/install.sh.26/metadata.txt
trying curl...
trying python...
Unable to retrieve a valid package!
Version: 2.5.3

Please file a Bug Report at https://github.com/chef/omnitruck/issues/new
Alternatively, feel free to open a Support Ticket at https://www.chef.io/support/tickets
More Chef support resources can be found at https://www.chef.io/support

Please include as many details about the problem as possible i.e., how to reproduce
the problem (if possible), type of the Operating System and its version, etc.,
and any other relevant details that might help us with troubleshooting.

Metadata URL: https://omnitruck.chef.io/stable/chefdk/metadata?v=2.5.3&p=el&pv=7&m=x86_64
\nDEBUG OUTPUT FOLLOWS:\n\nSTDERR from curl:\n\n\n\nSTDERR from python:\n\nTraceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib64/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File "/usr/lib64/python2.7/urllib2.py", line 449, in _open
    '_open', req)
  File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 1258, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/usr/lib64/python2.7/urllib2.py", line 1214, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)>\n

What is this issue? I played with my proxy but it shouldn't matter since it seems like the SSL certificate is not recognized.

@tas50 tas50 added the Type: Bug Does not work as expected. label Dec 18, 2018
@jakauppila
Copy link

jakauppila commented Sep 9, 2020

I was running into a similar issue as well when attempting to install Cinc Workstation on CentOS7 via WSL.

It turned out to be my proxy environment variables were not persisting into the sudo session, so I had to configure it to persist those environment variables as described here: https://askubuntu.com/a/19298

Is there some graceful way to notify/recognize when this is happening due to the sudoers configuration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Does not work as expected.
Projects
None yet
Development

No branches or pull requests

3 participants