#community-help

Skipping SSL Verification in Typesense-JS Client Configuration

TLDR James inquired about skipping SSL verification in typesense-js for testing. Advised by Jason, the user can utilize axios or LetsEncrypt.

Powered by Struct AI

1

5
26mo
Solved
Join the chat
Sep 17, 2021 (26 months ago)
James
Photo of md5-ae7223c767d7228418baf97773be94d6
James
07:35 PM
Hello. Does typesense-js have a client configuration option to skip SSL verify? (for testing purposes with a self-signed cert and no CA?)
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
08:11 PM
James The client itself doesn't support this, but the typesense client uses axios as the http library. So may be this helps: https://stackoverflow.com/questions/54903199/how-to-ignore-ssl-certificate-validation-in-node-requests/54903835
James
Photo of md5-ae7223c767d7228418baf97773be94d6
James
08:26 PM
Ah! Great. Thank you very much.

1

Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
08:50 PM
On a side note, if that doesn't work, I'd recommend using LetsEncrypt which gives you free SSL certs valid for 3 months at a time
08:51
Jason
08:51 PM
Or another option is to add your cert to your computer's root store to get it to trust it, so node doesn't complain