GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — Improve exception message generated by `EnhancingX509ExtendedTrustManager` by idelpivnitskiy · Pull Request #16056 · netty/netty Conversation
|
|
Please have a look at the last commit: f052301 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…edTrustManager.java Co-authored-by: Chris Vest <[email protected]>
…ager` (#16056) Motivation: This is an improvement for the feature introduced in #13381: 1. Include IP addresses in case matching happens via `HostnameChecker.matchIP`. 2. Include `URI` entries to detect when hostname verification should be disabled. 3. Include common name in case verification fallbacks to `CN` from subject. 4. Include both SNI hostname and peerHost to observe what was used for both paths inside `HostnameChecker`. 5. Split entries by cert in the chain. 6. Catch more use-cases (exception messages) coming from `HostnameChecker`. Modifications: - Enhance `EnhancingX509ExtendedTrustManager.throwEnhancedCertificateException` to include DNS, IP, URI types of SAN entries, CN as well as SNI hostname and peerHost. - Modify tests to assert new behavior. Result: More details in the exception message related to full logic of `HostnameChecker`. Example: ``` No subject alternative DNS name matching netty.io found for SNIHostName=netty.io and peerHost=netty.io in the chain of 1 certificate(s): 1. subjectAlternativeNames=[DNS:some.netty.io, IP:127.0.0.1, URI:URI:https://uri.netty.io/profile], CN=leaf.netty.io. ``` --------- Co-authored-by: Norman Maurer <[email protected]> Co-authored-by: Chris Vest <[email protected]>
…ager` (#16056) Motivation: This is an improvement for the feature introduced in #13381: 1. Include IP addresses in case matching happens via `HostnameChecker.matchIP`. 2. Include `URI` entries to detect when hostname verification should be disabled. 3. Include common name in case verification fallbacks to `CN` from subject. 4. Include both SNI hostname and peerHost to observe what was used for both paths inside `HostnameChecker`. 5. Split entries by cert in the chain. 6. Catch more use-cases (exception messages) coming from `HostnameChecker`. Modifications: - Enhance `EnhancingX509ExtendedTrustManager.throwEnhancedCertificateException` to include DNS, IP, URI types of SAN entries, CN as well as SNI hostname and peerHost. - Modify tests to assert new behavior. Result: More details in the exception message related to full logic of `HostnameChecker`. Example: ``` No subject alternative DNS name matching netty.io found for SNIHostName=netty.io and peerHost=netty.io in the chain of 1 certificate(s): 1. subjectAlternativeNames=[DNS:some.netty.io, IP:127.0.0.1, URI:URI:https://uri.netty.io/profile], CN=leaf.netty.io. ``` --------- Co-authored-by: Norman Maurer <[email protected]> Co-authored-by: Chris Vest <[email protected]>
#16074) …ager` (#16056) Motivation: This is an improvement for the feature introduced in #13381: 1. Include IP addresses in case matching happens via `HostnameChecker.matchIP`. 2. Include `URI` entries to detect when hostname verification should be disabled. 3. Include common name in case verification fallbacks to `CN` from subject. 4. Include both SNI hostname and peerHost to observe what was used for both paths inside `HostnameChecker`. 5. Split entries by cert in the chain. 6. Catch more use-cases (exception messages) coming from `HostnameChecker`. Modifications: - Enhance `EnhancingX509ExtendedTrustManager.throwEnhancedCertificateException` to include DNS, IP, URI types of SAN entries, CN as well as SNI hostname and peerHost. - Modify tests to assert new behavior. Result: More details in the exception message related to full logic of `HostnameChecker`. Example: ``` No subject alternative DNS name matching netty.io found for SNIHostName=netty.io and peerHost=netty.io in the chain of 1 certificate(s): 1. subjectAlternativeNames=[DNS:some.netty.io, IP:127.0.0.1, URI:URI:https://uri.netty.io/profile], CN=leaf.netty.io. ``` Co-authored-by: Idel Pivnitskiy <[email protected]> Co-authored-by: Chris Vest <[email protected]>
…ager` (netty#16056) Motivation: This is an improvement for the feature introduced in netty#13381: 1. Include IP addresses in case matching happens via `HostnameChecker.matchIP`. 2. Include `URI` entries to detect when hostname verification should be disabled. 3. Include common name in case verification fallbacks to `CN` from subject. 4. Include both SNI hostname and peerHost to observe what was used for both paths inside `HostnameChecker`. 5. Split entries by cert in the chain. 6. Catch more use-cases (exception messages) coming from `HostnameChecker`. Modifications: - Enhance `EnhancingX509ExtendedTrustManager.throwEnhancedCertificateException` to include DNS, IP, URI types of SAN entries, CN as well as SNI hostname and peerHost. - Modify tests to assert new behavior. Result: More details in the exception message related to full logic of `HostnameChecker`. Example: ``` No subject alternative DNS name matching netty.io found for SNIHostName=netty.io and peerHost=netty.io in the chain of 1 certificate(s): 1. subjectAlternativeNames=[DNS:some.netty.io, IP:127.0.0.1, URI:URI:https://uri.netty.io/profile], CN=leaf.netty.io. ``` --------- Co-authored-by: Norman Maurer <[email protected]> Co-authored-by: Chris Vest <[email protected]>
…ager` (#16056) (#16078) Motivation: This is an improvement for the feature introduced in #13381: 1. Include IP addresses in case matching happens via `HostnameChecker.matchIP`. 2. Include `URI` entries to detect when hostname verification should be disabled. 3. Include common name in case verification fallbacks to `CN` from subject. 4. Include both SNI hostname and peerHost to observe what was used for both paths inside `HostnameChecker`. 5. Split entries by cert in the chain. 6. Catch more use-cases (exception messages) coming from `HostnameChecker`. Modifications: - Enhance `EnhancingX509ExtendedTrustManager.throwEnhancedCertificateException` to include DNS, IP, URI types of SAN entries, CN as well as SNI hostname and peerHost. - Modify tests to assert new behavior. Result: More details in the exception message related to full logic of `HostnameChecker`. Example: ``` No subject alternative DNS name matching netty.io found for SNIHostName=netty.io and peerHost=netty.io in the chain of 1 certificate(s): 1. subjectAlternativeNames=[DNS:some.netty.io, IP:127.0.0.1, URI:URI:https://uri.netty.io/profile], CN=leaf.netty.io. ``` --------- Co-authored-by: Norman Maurer <[email protected]> Co-authored-by: Chris Vest <[email protected]> Co-authored-by: Chris Vest <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.