Please anyone help i am getting TLS Error (Got TLS error trying to find package abc at https://pub.dev)
Its self-hosted on corporate environment where i use corporate proxy, and in function i am also adding proxy env variables too.
Python functions do work but this pub.dev dependencies gives me TLS error
Does the instance have an internet connection?
Yes i have provided environment variables of corporate proxy in docker and in functions environment variables too. Should i give u screenshots?
For now not needed. You ran
docker compose up -d after updating the variables, right?
Yes
Btw in which containers should i exactly add proxy variables?
I hv set proxy on machine too and internet is working so no issues on host machine
Is your proxy doing some kind of MITM?
What does it mean? I hv no idea about MITM
MITM is Man-in-the-Middle. It's when something between you and the server (in this case, the proxy server) is looking at your SSL traffic. To do this, it needs the SSL session between you and itself to use it's own certificate, instead of a valid certificate your computer would recognise.
Does your org give you an SSL certificate you need to install on your devices to use them on the network?
I hv added certificates they gave me certificate nd I added it in the appwrite_certificates volume doesn't affected
The appwrite_certificates volume just holds certificates Appwrite serves, not certificates Appwrite will recognise.
So where should i add that?
I have no idea
Outside docker i already added that certificate and i can browse pub.dev
You'll need to have the runtime container trust the cert, somehow
I m stuck like more than 1 month no one is giving any solution i hv tried almost everything i can
I can't find how does appwrite build the runtime container such that i can add the certificate in the beginning everytime
On build, Appwrite runs whatever you set in the commands key for that function in your appwrite.json
Any idea how can I give the certificate in appwrite.json
You could either put it inside your Function, or you could have it available at a HTTP endpoint and have the init script pull it from there to install
Inside a function how is it possible, u mean i add that inside functions directory nd make a cmnd to copy that .cer file to the linux certification paths?
You'll probably need to convert it to a .crt, and then you should be able to put it into /usr/local/share/ca-certificates/, set permissions 644 and run update-ca-certificates.
Can you also try using the --root-certs-file flag like so - dart --root-certs-file=[CA.crt] pub ... ?
Recommended threads
- "Waiting" executions
For my React Native App, I have had no issues deploying a function in Appwrite & the executions either working or failing. Now I am getting status code - 0 & j...
- Deployed to live, but functions only wor...
Deployed my serveless functions, noticed a request is only sent when I switch on my vpn, I have a feeling it's an ip related thing, I'd like some help troublesh...
- Firebase app import
I'm **very** new to appwrite and I just set up appwrite with docker and I'm trying to import a Firebase app I have set up but it's erroring and I don't really k...