okigan / awscurl

curl-like access to AWS resources with AWS Signature Version 4 request signing.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

speller opened this issue · comments

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.

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

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

OK, thank you.