-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Support non-standard domains in X509 #6274
Comments
Aggregated into #6276. |
@30010041 sorry your report is not clear. |
That seems like it should be a new issue as well. |
@30010041 still not clear. First, a DNS name of What exception do you get? Please report the whole stack trace. |
The value of DNS is “duckduckgo.com“. The value of CN is “localhost“. java.lang.IllegalStateException: KeyStores with multiple certificates are not supported on the base class org.eclipse.jetty.util.ssl.SslContextFactory. (Use org.eclipse.jetty.util.ssl.SslContextFactory$Server or org.eclipse.jetty.util.ssl.SslContextFactory$Client instead) |
@30010041 please read the exception message carefully. The problem is not in the certificate handling like you think, it's that you have to use the correct |
@sbordet hello friend |
@30010041 you insist reporting a single |
@30010041 that error message is telling you what you need to do. We cannot pick the one you should be using for you, only you and your specific usage of If you don't make this change in your code, or don't want to make this change in your code, then there is nothing more we can do to help you. |
Jetty version
9.4.x
Description
Class
X509
seems to discard domains that don't have a dot or that have a space in the CN, but there is no correspondent check for SAN.X509
should be more lenient and allow for domains such aslocalhost
or[::1]
, because clients may send such domains as SNI.Note that Java clients don't send SNIs that are non-standard:
https://github.com/openjdk/jdk/blob/jdk-16-ga/src/java.base/share/classes/sun/security/ssl/Utilities.java#L104-L107
However, it is possible to send them via APIs.
In case the APIs are used to send non-standard domains as SNI, Jetty on the server should be able to match them.
The text was updated successfully, but these errors were encountered: