Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

SSL error when trying to download some games #29

@Oblomov

Description

@Oblomov

I get an SSL error when trying to download Quest of Dungeons. I can access the page without issues from the browser, but apparently Python considers the connection insecure:

INFO:root:Downloading https://dj_link.itch.io/quest-of-dungeons
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): dj_link.itch.io:443
DEBUG:urllib3.util.retry:Incremented Retry for (url='/quest-of-dungeons'): Retry(total=4, connect=None, read=None, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'dj_link.itch.io'. (_ssl.c:1029)"))': /quest-of-dungeons

I assume the underscore is causing the issue in this case, since by RFC 1123 host names are only made up of letters and hyphens. I'm not sure if itch-dl can do anything about this, except possibly setting some flag to make SSL checks weaker, which isn't a good idea for security though …

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions