#community-help

Disabling SSL Verification for Self-Signed Certificate in Typesense-JS

TLDR Robert needed support with disabling the SSL certification in Typesense-JS node client for a self-signed certificate. Kishore Nallan proposed a workaround on Stackoverflow.

Powered by Struct AI
8
28mo
Solved
Join the chat
Jul 29, 2021 (28 months ago)
Robert
Photo of md5-a0aba3e46685345ae57c342a8130989f
Robert
02:58 PM
We’re trying to use typesense-js client to connect to a typesense cluster over https. The ssl on the cluster is self signed, and we are ok with that for now. The library complains about that:
error: self signed certificate 
code: DEPTH_ZERO_SELF_SIGNED_CERT

Is it possible to disable the verification of the ssl cert so that self signed certs are also allowed ? Asking only about the JS client
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
03:03 PM
JS browser or node client?
Robert
Photo of md5-a0aba3e46685345ae57c342a8130989f
Robert
03:38 PM
node js client
04:03
Robert
04:03 PM
Kishore Nallan?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
04:09 PM
I don't think there is a way to do that, but why not just use http?
04:09
Kishore Nallan
04:09 PM
If it's on an internal network, that should be fine.
04:10
Kishore Nallan
04:10 PM
Robert
Photo of md5-a0aba3e46685345ae57c342a8130989f
Robert
05:06 PM
trying now, thanks!