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

Silence InsecureRequestWarning #41

Open
bt-thiago opened this issue May 21, 2019 · 4 comments
Open

Silence InsecureRequestWarning #41

bt-thiago opened this issue May 21, 2019 · 4 comments
Labels
good first issue Good for newcomers

Comments

@bt-thiago
Copy link
Contributor

When the user has chosen to not verify the x509 certificate with "nexus_verify": false, we should silence the warning below.

AttributeError: 'module' object has no attribute 'X509_up_ref'
/home/611036184/.local/lib/python2.7/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
@bt-thiago bt-thiago added the good first issue Good for newcomers label May 21, 2019
@bt-thiago bt-thiago changed the title Silence InsecureRequestWarning when Silence InsecureRequestWarning May 21, 2019
@nikolaev14
Copy link
Contributor

Hi, cannot reproduce. On mac with py3.6 in venv.

@thiagofigueiro
Copy link
Owner

thiagofigueiro commented May 22, 2019

Hi, @nikolaev14 - can I please see your ~/.nexus-cli file (minus any credentials/secrets)? Did you install the client from a branch or from a pypi release?

This only happens if the nexus_url attribute contains a https URL, which is a bit of a pain to set up.

@nikolaev14
Copy link
Contributor

nikolaev14 commented May 22, 2019

Hi, @thiagofigueiro yes, i dont understand that nexus run ower https, thanks.

@rasaoskuei
Copy link

Hi everybody!

I am using nexus3 for self-signed nexus sonatype and get mentioned warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants