We are trying to connect to Typesense where the ce...
# community-help
s
We are trying to connect to Typesense where the certificate is installed from a Python client, how to we verify false or certificate . Sample connection string typesense_client = typesense.Client({ # 'nodes': [ # {"host": typesense_host1, "port": 8108, "protocol": "https"}, # {"host": typesense_host2, "port": 8108, "protocol": "https"}, # {"host": typesense_host3, "port": 8108, "protocol": "https"}, # {"host": typesense_host4, "port": 8108, "protocol": "https"}, # {"host": typesense_host5, "port": 8108, "protocol": "https"} # ], # 'api_key': api_key, # 'connection_timeout_seconds': 30, # 'retry_interval_seconds': 5 # })
k
how to we verify false or certificate
I don't understand what you mean by this. Please clarify.
s
When I am trying to connect to typsense cluster from python client I am getting below error SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1000)'))). so I would like to know how to connect to typsesense from python client remotely
k
Are you using self-signed certificate?
s
Org issued certificate
k
Then I am not sure why that error is raised. It could be an issue with the certificate (maybe you have to use the cert with full chain of providers). You can first try to make it work on a simple Python example with
requests
library because the Python client uses requests also under the hood.
s
Could you please share sample cert format
k
Not sure, that will depend on the certificate type etc.