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

Trailing dot autoremove #228

Open
1Dragoon opened this issue May 28, 2022 · 3 comments
Open

Trailing dot autoremove #228

1Dragoon opened this issue May 28, 2022 · 3 comments

Comments

@1Dragoon
Copy link

1Dragoon commented May 28, 2022

Given RFC 3546 stipulates that the trailing dot should never be present in a domain name: https://datatracker.ietf.org/doc/html/rfc3546#section-3.1

Could we either automatically detect and remove the trailing dot from domain names passed to native-tls, or have the error message produced show what the expected name(s) was vs what was found?

FWIW here's where I ran into this issue:

inejge/ldap3#84

May or may not be in scope for this project, just wanted to at least bring up the issue.

@sfackler
Copy link
Owner

This crate does not interact with rustls.

@1Dragoon
Copy link
Author

sorry accidentally wrote rustls but meant native-tls

@sfackler
Copy link
Owner

native-tls directly exposes the errors returned by the underlying TLS library (e.g. OpenSSL). If you want a more descriptive error, you would probably need to ask there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants