Kapacitor ssl issue

Linux OS
successful influx ,chronograf and telegraf

I see this error in var logs for kapacitor

lvl=error msg=“failed to connect to InfluxDB, retrying…” service=influxdb cluster=localhost err=“Get https://localhost:8086/ping: x509: certificate is valid for servername.com, not localhost”

kapacitor -url https://localhost:9092 -skipVerify list tasks
Get https://localhost:9092/kapacitor/v1/tasks?dot-view=attributes&fields=type&fields=status&fields=executing&fields=dbrps&limit=100&offset=0&pattern=&replay-id=&script-format=formatted: dial tcp 127.0.0.1:9092: connect: connection refused

Thanks and Regards
Deepthi Kunapareddy