Skip to content

skip_domain_validation not working when using rustls #283

@alekitto

Description

@alekitto

TLS skip_domain_validation is not respected when using rustls.

This line checks for "CertNotValidForName" string, but since rustls 0.21 the error is simply called NotValidForName, so the check fails and the connection cannot be completed.

Simply adjusting the checked string is sufficient to fix the issue.

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