Use InfluxDB3.Client SDK(.NET8) to query data from local InfluxDB 3 Core, get the SSL error like this .
Configuration like below.
- Openssl
openssl req -x509 -nodes -newkey rsa:2048 -keyout influxdb-selfsigned.key -out influxdb-selfsigned.crt -days <Number_of_Days>
Common Name: PC Name
- Influxdb3.exe serve –node-ind host01 –object-store file –data-dir ~/.influxdb3_data –tls-cert= influxdb-selfsigned.crt tls-key=influxdb-selfsigned.key
URL: https://localhost:8181
Use Postman ping the url https://localhost:8181/ping with token can return the correct result (200 & the current version 3.0.1)
But use the .NetCore SDK to query data will return the SSL or certificate error.
Could any one can help?
Hello @li_xuguang,
Welcome!
I’m so sorry I missed this. Please in the future tag me
I’m asking around because I don’t know the answer to this question.
Likely something to do with how they are setting up the cert. The common name might need to be localhost for the cert to be “valid” for localhost (e.g., see SO comment).Postman may make some exceptions for cases like this since people use it locally, whereas the .Net client has more standard cert verification requirements.
Stack Overflow
How can I create a self-signed certificate for ‘localhost’?
I’ve gone through the steps detailed in How do you use HTTPS and SSL on 'localhost'?, but this sets up a self-signed certificate for my machine name, and when browsing it via https://localh…

Thanks a lot. We recreate the cert and it works correctly.