Skip to content

Example project to show the problem described in Jetty Issue 2896

Notifications You must be signed in to change notification settings

mperktold/jetty-conscrypt-cert-selection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jetty-conscrypt-cert-selection

Example project to show the problem described in Jetty issue 2896.

This is a minimal example implementing a server that has two wildcard certificates *.alfa.org and *.beta.org. The problem is that the server always uses the same certificate, regardless of the host specified by the client.

To reproduce the problem, first add the following lines to your hosts file (/etc/hosts in Unix, C:\WINDOWS\System32\drivers\etc\hosts in Windows).

127.0.0.1		test.alfa.org
127.0.0.1		test.beta.org

Then run VirtualHosts.main() and visit both test.alfa.org and test.beta.org in your browser. If you view the certificate, you can see that both use *.alpha.org.

However, this only happens when using Conscrypt. To try without, uncomment or remove the code where the Conscrypt SSL provider is set.

About

Example project to show the problem described in Jetty Issue 2896

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages