Discussion:
[influxdb] Enabling ssl for InfluxDB 8086 with self signed certificate
a***@gmail.com
2016-06-02 04:50:04 UTC
Permalink
I enabled ssl for 8086 with a self signed certificate and Grafana appears to be able to communicate with InfluxDB. But I can't connect to CLI. I tried both -ssl and -unsafeSsl options.


#influx -ssl
Failed to connect to https://localhost:8086
Please check your connection settings and ensure 'influxd' is running.


#influx -unsafeSsl
Failed to connect to https://localhost:8086
Please check your connection settings and ensure 'influxd' is running.


influxdb.log shows:
[run] 2016/06/01 23:42:20 http: TLS handshake error from 127.0.0.1:50617: remote error: bad certificate
[run] 2016/06/01 23:42:28 http: TLS handshake error from 127.0.0.1:50642: tls: first record does not look like a TLS handshake

According this https://github.com/influxdata/influxdb/issues/4090 the unsafe option should work. Wondering if the reason I cant connect to CLI is the 'self signed certificate' or if I am missing something.

Thanks,
Divya
--
Remember to include the InfluxDB version number with all issue reports
---
You received this message because you are subscribed to the Google Groups "InfluxDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/63715e0c-e379-4bac-8490-7fe1745f2750%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
a***@gmail.com
2016-06-02 17:07:32 UTC
Permalink
That worked !

Thanks much,
Divya
Try `influx -ssl -unsafeSsl`.
Post by a***@gmail.com
I enabled ssl for 8086 with a self signed certificate and Grafana appears to be able to communicate with InfluxDB. But I can't connect to CLI. I tried both -ssl and -unsafeSsl options.
#influx -ssl
Failed to connect to https://localhost:8086
Please check your connection settings and ensure 'influxd' is running.
#influx -unsafeSsl
Failed to connect to https://localhost:8086
Please check your connection settings and ensure 'influxd' is running.
[run] 2016/06/01 23:42:20 http: TLS handshake error from 127.0.0.1:50617: remote error: bad certificate
[run] 2016/06/01 23:42:28 http: TLS handshake error from 127.0.0.1:50642: tls: first record does not look like a TLS handshake
According this https://github.com/influxdata/influxdb/issues/4090 the unsafe option should work. Wondering if the reason I cant connect to CLI is the 'self signed certificate' or if I am missing something.
Thanks,
Divya
--
Remember to include the InfluxDB version number with all issue reports
---
You received this message because you are subscribed to the Google Groups "InfluxDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/3692bf4e-c3a6-4e8b-9450-e985d0136f0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
n***@gmail.com
2016-07-16 02:02:44 UTC
Permalink
I'm also trying to get SSL/TLS working for my InfluxDB server. I can successfully connect locally using the CLI client using `influx --ssl -unsafeSsl`, but my requirement is to connect via any HTTPS client _without_ forcing an insecure connection. I tried connecting to my server using `curl` but I get an error. I filed the details here: https://github.com/influxdata/influxdb/issues/4090#issuecomment-232987018
Post by a***@gmail.com
That worked !
Thanks much,
Divya
Try `influx -ssl -unsafeSsl`.
Post by a***@gmail.com
I enabled ssl for 8086 with a self signed certificate and Grafana appears to be able to communicate with InfluxDB. But I can't connect to CLI. I tried both -ssl and -unsafeSsl options.
#influx -ssl
Failed to connect to https://localhost:8086
Please check your connection settings and ensure 'influxd' is running.
#influx -unsafeSsl
Failed to connect to https://localhost:8086
Please check your connection settings and ensure 'influxd' is running.
[run] 2016/06/01 23:42:20 http: TLS handshake error from 127.0.0.1:50617: remote error: bad certificate
[run] 2016/06/01 23:42:28 http: TLS handshake error from 127.0.0.1:50642: tls: first record does not look like a TLS handshake
According this https://github.com/influxdata/influxdb/issues/4090 the unsafe option should work. Wondering if the reason I cant connect to CLI is the 'self signed certificate' or if I am missing something.
Thanks,
Divya
--
Remember to include the InfluxDB version number with all issue reports
---
You received this message because you are subscribed to the Google Groups "InfluxDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/9e852df2-22c8-4ef5-8f3f-6eea18ed40a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...