okigan / awscurl

curl-like access to AWS resources with AWS Signature Version 4 request signing.
MIT License
755 stars 94 forks source link

urllib's InsecureRequestWarning printed to stdout when using the --insecure parameter #130

Closed speller closed 2 years ago

speller commented 3 years ago

I'm using a custom hostname for the URL and thus the server certificate can't be verified. I'm passing the --insecure argument but it still prints the following warning:

/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host 'host.docker.internal'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
  warnings.warn(

I think this should be suppressed.

okigan commented 3 years ago

@speller please confirm latest resolves your issue (ex. installing from source: $ pip install git+https://github.com/okigan/awscurl)

speller commented 2 years ago

@okigan this seems to be not merged yet to the main branch?

okigan commented 2 years ago

Done

speller commented 2 years ago

OK, thank you.