fix api configuration with ssl