add ssl config, fix warning