Unable to import data through influx CLI with SSL enabled #7659
Closed
Description
Bug report
System info:
- InfluxDB Version: 1.0.2
- OS: ArchLinux 64bit and Debian Jessie 64bit
Steps to reproduce:
- Enable HTTPS with a self-signed certificate.
- Importing previously exported data with influx CLI with the command
/usr/bin/influx -ssl -unsafeSsl -import -path influxdb-data.txt
Expected behavior:
Data should be imported by the InfluxDB.
Actual behavior:
Influx CLI reported error:
ERROR: failed to connect to https://localhost:8086
And influxd
logs shows:
[httpd] ::1 - admin [23/Nov/2016:09:46:55 +0000] "GET /ping HTTP/1.1" 204 0 "-" "InfluxDBShell/1.0.2" c503c5a3-b161-11e6-8001-000000000000 18
[run] 2016/11/23 09:46:55 http: TLS handshake error from [::1]:34244: remote error: bad certificate
Additional info:
The importing works if the HTTPS is disabled. I also test it on 1.1.0 and doesn't work either.