
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
- How to delete secured files from bucket?
When deleting a user I want to delete all their data including files. How can I delete secured files in cloud/nodejs?
- Self hosting password reset flow V1.7.4
Hi all, I am having trouble making a password reset flow that works for self hosted. I know it has the fuunctionality but I keep getting errors: The probl...
- Import Css glitsch?
Hey, Seems to be not only my computer, but some other i know - Seems that there's a css error When migrating, the input checkbox, and selectbox are.. out of st...
