Source:
<code>public static SSLConfig getSSLConfigForListener(String certPass, String keyStorePass, String keyStoreFilePath, String trustStoreFilePath, String trustStorePass, List<Parameter> parametersList, String verifyClient, String sslProtocol) { if (certPass == null) { certPass = keyStorePass; } if (keyStoreFilePath == null || keyStorePass == null) { throw new IllegalArgumentException("keyStoreFile or keyStorePassword not defined for HTTPS scheme"); } File keyStore = new File(substituteVariables(keyStoreFilePath)); if (!keyStore.exists()) { throw new IllegalArgumentException("KeyStore File " + keyStoreFilePath + " not found"); } SSLConfig sslConfig = new SSLConfig(keyStore, keyStorePass).setCertPass(certPass); for (Parameter parameter : parametersList) { if (parameter.getName() .equals(Constants.SERVER_SUPPORT_CIPHERS)) { sslConfig.setCipherSuites(parameter.getValue()); } else if (parameter.getName() .equals(Constants.SERVER_SUPPORT_HTTPS_PROTOCOLS)) { sslConfig.setEnableProtocols(parameter.getValue()); } else if (parameter.getName() .equals(Constants.SERVER_SUPPORTED_SNIMATCHERS)) { sslConfig.setSniMatchers(parameter.getValue()); } else if (parameter.getName() .equals(Constants.SERVER_SUPPORTED_SERVER_NAMES)) { sslConfig.setServerNames(parameter.getValue()); } else if (parameter.getName() .equals(Constants.SERVER_ENABLE_SESSION_CREATION)) { sslConfig.setEnableSessionCreation(Boolean.parseBoolean(parameter.getValue())); } } <START> if (verifyClient != null && verifyClient.equalsIgnoreCase("require")) { <END> sslConfig.setNeedClientAuth(true); } sslProtocol = sslProtocol != null ? sslProtocol : "TLS"; sslConfig.setSslProtocol(sslProtocol); if (trustStoreFilePath != null) { File trustStore = new File(substituteVariables(trustStoreFilePath)); if (!trustStore.exists()) { throw new IllegalArgumentException("trustStore File " + trustStoreFilePath + " not found"); } if (trustStorePass == null) { throw new IllegalArgumentException("trustStorePass is not defined for HTTPS scheme"); } sslConfig.setTrustStore(trustStore).setTrustStorePass(trustStorePass); } return sslConfig; }</code><technical_language>change to.. if ("require".equalsIgnoreCase(verifyClient)) { ..</technical_language>

Target:
public static SSLConfig getSSLConfigForListener(String certPass, String keyStorePass, String keyStoreFilePath, String trustStoreFilePath, String trustStorePass, List<Parameter> parametersList, String verifyClient, String sslProtocol) { if (certPass == null) { certPass = keyStorePass; } if (keyStoreFilePath == null || keyStorePass == null) { throw new IllegalArgumentException("keyStoreFile or keyStorePassword not defined for HTTPS scheme"); } File keyStore = new File(substituteVariables(keyStoreFilePath)); if (!keyStore.exists()) { throw new IllegalArgumentException("KeyStore File " + keyStoreFilePath + " not found"); } SSLConfig sslConfig = new SSLConfig(keyStore, keyStorePass).setCertPass(certPass); for (Parameter parameter : parametersList) { if (parameter.getName() .equals(Constants.SERVER_SUPPORT_CIPHERS)) { sslConfig.setCipherSuites(parameter.getValue()); } else if (parameter.getName() .equals(Constants.SERVER_SUPPORT_SSL_PROTOCOLS)) { sslConfig.setEnableProtocols(parameter.getValue()); } else if (parameter.getName() .equals(Constants.SERVER_SUPPORTED_SNIMATCHERS)) { sslConfig.setSniMatchers(parameter.getValue()); } else if (parameter.getName() .equals(Constants.SERVER_SUPPORTED_SERVER_NAMES)) { sslConfig.setServerNames(parameter.getValue()); } else if (parameter.getName() .equals(Constants.SERVER_ENABLE_SESSION_CREATION)) { sslConfig.setEnableSessionCreation(Boolean.parseBoolean(parameter.getValue())); } } if ("require".equalsIgnoreCase(verifyClient)) { sslConfig.setNeedClientAuth(true); } sslProtocol = sslProtocol != null ? sslProtocol : "TLS"; sslConfig.setSslProtocol(sslProtocol); if (trustStoreFilePath != null) { File trustStore = new File(substituteVariables(trustStoreFilePath)); if (!trustStore.exists()) { throw new IllegalArgumentException("trustStore File " + trustStoreFilePath + " not found"); } if (trustStorePass == null) { throw new IllegalArgumentException("trustStorePass is not defined for HTTPS scheme"); } sslConfig.setTrustStore(trustStore).setTrustStorePass(trustStorePass); } return sslConfig; }