influxdata/influxdb-client-php

Self signed SSL certificate

Shadow505 opened this issue · 2 comments

Hello,

I am using a self signed SSL certificate, unfortunately that results in an exception
Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: self signed certificate

I could not find an option to disable that verification.

I was able to fix this by adding

'verify' => $this->options['verify']

to the constructor of DefaultApi.php and then adding 'verify' => false to the options when initializing InfluxDB2\Client.

Would be good if you add it to the code.

@Shadow505 thanks for using our client, We will take a look