optionally disable client auth
Change-Id: Ic81a1cbc4c7140696662388e120d6dcaadc2588a
Issue-ID: AAI-2116
Signed-off-by: Bansal, Nitin (nb121v) <nitin.bansal@amdocs.com>
props.put("server.ssl.trust-store-password", trustStorePassword);
}
+ String requireClientAuth = System.getenv("REQUIRE_CLIENT_AUTH");
+ if (requireClientAuth == null || requireClientAuth.isEmpty()) {
+ props.put("server.ssl.client-auth", "need");
+ }else {
+ props.put("server.ssl.client-auth",requireClientAuth.equals("true")?"need":"want");
+ }
+
+
new ChampApplication().configure(new SpringApplicationBuilder(ChampApplication.class).properties(props))
.run(args);
}
server.ssl.key-store=${CONFIG_HOME}/auth/tomcat_keystore
server.ssl.key-store-type=JKS
server.ssl.enabled=true
-server.ssl.client-auth=need
logging.config=classpath:logback.xml