New Connection fails with 'unable to verify the first certificate'
InRiPa opened this issue · comments
I'm using
- Linux
- vscode v 1.70.0
- Flux v1.0.4
On a development server, I have a dockerized InfluxDB instance with a self-signed certificate running.
- InfluxDB v2.3.0+SNAPSHOT.090f681737
What I did:
- Opened VScode
- Opened InfluxDB: Add Connection
- Left all blank and hit "Test"
- Received Popup that I missed a field.
- Entered all values
- Hit "Test" ➡️ nothing appears to happen
- Hit "Save" ➡️ nothing appears to happen
Expected behavior:
- Display of a message, that the values were checked and an error occurred
What I tried so far:
- Opened command palette and Show Logs and switched to Log (Window)
- When hitting "Test" or "Save" the following message appears in the log window
[2022-08-10 11:28:30.923] [renderer1] [error] unable to verify the first certificate: Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34)
at TLSSocket.emit (node:events:390:28)
at TLSSocket.emit (node:domain:475:12)
at TLSSocket._finishInit (node:_tls_wrap:944:8)
at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:725:12)
I'm not sure, but when I added the influxdb instance to a grafana instance, I had to check the "Skip TLS Verify" option. Maybe here, it's the same issue.
got the same Problem using:
InfluxdB OSS 2.11
VSCode 1.77.3
Flux 1.0.4
Short Update:
I rolled back to flux version 0.6.12 and disabling https verification does indeed fix the problem
Short update, we upgraded our influx version to 2.71 and the problem still exists.
The only thing that changed is, that it is know possible to add the database on an old plugin version and then upgrade to the current version
Save problem with
VSCode 1.91.1
InfluxDB v2.7.7