Join Slack
Powered by
Hello. Does typesense-js have a client configurati...
# community-help
j
James K
09/17/2021, 7: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?)
j
Jason Bosco
09/17/2021, 8:11 PM
@James K
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
j
James K
09/17/2021, 8:26 PM
Ah! Great. Thank you very much.
👍 1
j
Jason Bosco
09/17/2021, 8: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
Jason Bosco
09/17/2021, 8: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
Open in Slack
Previous
Next