Back

[SOLVED] using server sdk in Function throws Handshake error in client CERTIFICATE_VERIFY_FAILED

  • 0
  • Self Hosted
  • Functions
obiwanzenobi
18 Jul, 2023, 07:17

Appwrite hosted on digital ocean, function uses Dart 2.17 runtime, Endpoint set to https:// {public_server_ip} /v1

TL;DR
Solution: When using the server-side SDK in a Function and encountering a Handshake error with the client's CERTIFICATE_VERIFY_FAILED, one possible solution is to set `selfSigned` as `true` when using an IP address. However, it is recommended to use a domain instead of a raw public IP address. In the case of Appwrite hosted on Digital Ocean, with the function using Dart 2.17 runtime and the endpoint set to `https://{public_server_ip}/v1`, it is advisable to switch to using a domain instead of the raw IP address.
obiwanzenobi
18 Jul, 2023, 07:18

should I use domain instead of raw public ip?

Binyamin
18 Jul, 2023, 12:53

When using IP you should set selfSigned as true

But if you can it's best to use the domain.

obiwanzenobi
19 Jul, 2023, 10:17

[SOLVED]using server side sdk in Function throws Handshake error in client CERTIFICATE_VERIFY_FAILED

Drake
19 Jul, 2023, 16:43

[SOLVED] using server sdk in Function throws Handshake error in client CERTIFICATE_VERIFY_FAILED

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more