Issue #4778 - Enforcing SNI when there are only non-wildcards certificates.
Fixed test case after merge. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
99ecfca439
commit
66d78b2059
|
@ -282,7 +282,7 @@ public class SslContextFactoryTest
|
||||||
assertTrue(cf.getX509("other").matches("www.example.com"));
|
assertTrue(cf.getX509("other").matches("www.example.com"));
|
||||||
assertFalse(cf.getX509("other").matches("eclipse.org"));
|
assertFalse(cf.getX509("other").matches("eclipse.org"));
|
||||||
|
|
||||||
assertThat(cf.getX509("san").getHosts(), containsInAnyOrder("www.san.com", "m.san.com"));
|
assertThat(cf.getX509("san").getHosts(), containsInAnyOrder("san example", "www.san.com", "m.san.com"));
|
||||||
assertTrue(cf.getX509("san").getWilds().isEmpty());
|
assertTrue(cf.getX509("san").getWilds().isEmpty());
|
||||||
assertTrue(cf.getX509("san").matches("www.san.com"));
|
assertTrue(cf.getX509("san").matches("www.san.com"));
|
||||||
assertTrue(cf.getX509("san").matches("m.san.com"));
|
assertTrue(cf.getX509("san").matches("m.san.com"));
|
||||||
|
|
Loading…
Reference in New Issue