@ImportResource("classpath:babel-beans.xml")
public class BabelApplication extends SpringBootServletInitializer {
+ private static final String OBFS_PATTERN = "OBF:";
+
/**
* Spring Boot Initialization.
*
throw new IllegalArgumentException("Env property KEY_STORE_PASSWORD not set");
}
HashMap<String, Object> props = new HashMap<>();
- props.put("server.ssl.key-store-password", Password.deobfuscate(keyStorePassword));
+ String decryptedValue = keyStorePassword.startsWith(OBFS_PATTERN)? Password.deobfuscate(keyStorePassword) : keyStorePassword;
+ props.put("server.ssl.key-store-password", decryptedValue);
new BabelApplication().configure(new SpringApplicationBuilder(BabelApplication.class).properties(props))
.run(args);
}