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

Feature request: Add config option to ignore self-signed certificates #560

Open
Konzertheld opened this issue Jul 14, 2019 · 1 comment

Comments

@Konzertheld
Copy link

commented Jul 14, 2019

Isso currently can't connect to a website if it has an invalid / self-signed certificate. Some people might want to ignore that. I was one of them as I tried to test SSL issues for #558 locally.

The relevant line is here: https://github.com/posativ/isso/blob/master/isso/utils/http.py#L44

A context can be passed to ignore certificates like this

import ssl as ssls

...

self.con = http(host, port, timeout=self.timeout, context=ssls._create_unverified_context())

Note that I used as ssls because there is already a local variable called ssl.

@Enteee

This comment has been minimized.

Copy link

commented Jul 22, 2019

A similar option would also be handy on when connecting to a mail server with invalid certificate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.