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.
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 calledNotValidForName
, so the check fails and the connection cannot be completed.Simply adjusting the checked string is sufficient to fix the issue.