InfluxDBStudio icon indicating copy to clipboard operation
InfluxDBStudio copied to clipboard

Connection using -unsafeSsl option

Open MarceloCampos opened this issue 5 years ago • 1 comments

is possible to implement connection using -unsafeSsl ?

as in Influx --help: -unsafeSsl: "Set this when connecting to the cluster using https and not use SSL verification."

thx

MarceloCampos avatar Oct 28 '20 12:10 MarceloCampos

I run in the same issue.

Here is my local quick an dirty workaround.

Constructor modified of InfluxDataNetClient

public InfluxDataNetClient(InfluxDbConnection connection) :
            base(connection)
        {


            // Create the underlying concrete client
            var c = connection;
            // do this to use self signed certificates
            System.Net.ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true;

            influx = new InfluxData.Net.InfluxDb.InfluxDbClient(c.HttpConnectionString, 
                c.Username, c.Password, InfluxDbVersion.Latest);
        }

works for me.

If I got the time I will add a property to the InfluxDbConnection class and will handle it. Then I create a pull request.

Henna1977 avatar Nov 19 '20 08:11 Henna1977