|
|
|
@ -131,6 +131,7 @@ public abstract class AbstractReactiveWebServerFactoryTests {
|
|
|
|
|
Ssl ssl = new Ssl();
|
|
|
|
|
ssl.setKeyStore(keyStore);
|
|
|
|
|
ssl.setKeyPassword(keyPassword);
|
|
|
|
|
ssl.setKeyStorePassword("secret");
|
|
|
|
|
factory.setSsl(ssl);
|
|
|
|
|
this.webServer = factory.getWebServer(new EchoHandler());
|
|
|
|
|
this.webServer.start();
|
|
|
|
@ -149,6 +150,7 @@ public abstract class AbstractReactiveWebServerFactoryTests {
|
|
|
|
|
AbstractReactiveWebServerFactory factory = getFactory();
|
|
|
|
|
Ssl ssl = new Ssl();
|
|
|
|
|
ssl.setKeyStore(keyStore);
|
|
|
|
|
ssl.setKeyStorePassword("secret");
|
|
|
|
|
ssl.setKeyPassword(keyPassword);
|
|
|
|
|
ssl.setKeyAlias("test-alias");
|
|
|
|
|
factory.setSsl(ssl);
|
|
|
|
@ -196,6 +198,7 @@ public abstract class AbstractReactiveWebServerFactoryTests {
|
|
|
|
|
ssl.setClientAuth(Ssl.ClientAuth.WANT);
|
|
|
|
|
ssl.setKeyStore("classpath:test.jks");
|
|
|
|
|
ssl.setKeyPassword("password");
|
|
|
|
|
ssl.setKeyStorePassword("secret");
|
|
|
|
|
ssl.setTrustStore("classpath:test.jks");
|
|
|
|
|
testClientAuthSuccess(ssl, buildTrustAllSslWithClientKeyConnector());
|
|
|
|
|
}
|
|
|
|
@ -207,6 +210,7 @@ public abstract class AbstractReactiveWebServerFactoryTests {
|
|
|
|
|
ssl.setKeyStore("classpath:test.jks");
|
|
|
|
|
ssl.setKeyPassword("password");
|
|
|
|
|
ssl.setTrustStore("classpath:test.jks");
|
|
|
|
|
ssl.setKeyStorePassword("secret");
|
|
|
|
|
testClientAuthSuccess(ssl, buildTrustAllSslConnector());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -240,6 +244,7 @@ public abstract class AbstractReactiveWebServerFactoryTests {
|
|
|
|
|
Ssl ssl = new Ssl();
|
|
|
|
|
ssl.setClientAuth(Ssl.ClientAuth.NEED);
|
|
|
|
|
ssl.setKeyStore("classpath:test.jks");
|
|
|
|
|
ssl.setKeyStorePassword("secret");
|
|
|
|
|
ssl.setKeyPassword("password");
|
|
|
|
|
ssl.setTrustStore("classpath:test.jks");
|
|
|
|
|
testClientAuthSuccess(ssl, buildTrustAllSslWithClientKeyConnector());
|
|
|
|
@ -250,6 +255,7 @@ public abstract class AbstractReactiveWebServerFactoryTests {
|
|
|
|
|
Ssl ssl = new Ssl();
|
|
|
|
|
ssl.setClientAuth(Ssl.ClientAuth.NEED);
|
|
|
|
|
ssl.setKeyStore("classpath:test.jks");
|
|
|
|
|
ssl.setKeyStorePassword("secret");
|
|
|
|
|
ssl.setKeyPassword("password");
|
|
|
|
|
ssl.setTrustStore("classpath:test.jks");
|
|
|
|
|
testClientAuthFailure(ssl, buildTrustAllSslConnector());
|
|
|
|
|