|
|
@ -315,22 +315,17 @@ public class TomcatEmbeddedServletContainerFactory
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
protected void configureSsl(AbstractHttp11JsseProtocol<?> protocol, Ssl ssl) {
|
|
|
|
protected void configureSsl(AbstractHttp11JsseProtocol<?> protocol, Ssl ssl) {
|
|
|
|
protocol.setSSLEnabled(true);
|
|
|
|
protocol.setSSLEnabled(true);
|
|
|
|
//Set the default TLS protocol
|
|
|
|
|
|
|
|
protocol.setSslProtocol(ssl.getProtocol());
|
|
|
|
protocol.setSslProtocol(ssl.getProtocol());
|
|
|
|
|
|
|
|
|
|
|
|
//Assign the supported protocols, if provided
|
|
|
|
|
|
|
|
if (ssl.getProtocols() != null) {
|
|
|
|
|
|
|
|
String protocols = StringUtils.arrayToCommaDelimitedString(ssl.getProtocols());
|
|
|
|
|
|
|
|
protocol.setProperty("sslEnabledProtocols", protocols);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
configureSslClientAuth(protocol, ssl);
|
|
|
|
configureSslClientAuth(protocol, ssl);
|
|
|
|
protocol.setKeystorePass(ssl.getKeyStorePassword());
|
|
|
|
protocol.setKeystorePass(ssl.getKeyStorePassword());
|
|
|
|
protocol.setKeyPass(ssl.getKeyPassword());
|
|
|
|
protocol.setKeyPass(ssl.getKeyPassword());
|
|
|
|
protocol.setKeyAlias(ssl.getKeyAlias());
|
|
|
|
protocol.setKeyAlias(ssl.getKeyAlias());
|
|
|
|
configureSslKeyStore(protocol, ssl);
|
|
|
|
configureSslKeyStore(protocol, ssl);
|
|
|
|
String ciphers = StringUtils.arrayToCommaDelimitedString(ssl.getCiphers());
|
|
|
|
protocol.setCiphers(StringUtils.arrayToCommaDelimitedString(ssl.getCiphers()));
|
|
|
|
protocol.setCiphers(ciphers);
|
|
|
|
if (ssl.getEnabledProtocols() != null) {
|
|
|
|
|
|
|
|
protocol.setProperty("sslEnabledProtocols",
|
|
|
|
|
|
|
|
StringUtils.arrayToCommaDelimitedString(ssl.getEnabledProtocols()));
|
|
|
|
|
|
|
|
}
|
|
|
|
configureSslTrustStore(protocol, ssl);
|
|
|
|
configureSslTrustStore(protocol, ssl);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|