I’m new to fly.io & trying to deploy a golang html server that is connecting to a supabase database. I’m currently using their library for it
Get "https://xxxxx.supabase.co/rest/v1/mytable?id=": tls: failed to verify certificate: x509: certificate signed by unknown authority
Ive read the other help posts & added the following to my docker file
RUN apt-get update && apt-get install -y ca-certificates
RUN rm -rf /var/lib/apt/lists/*
COPY certs/prod-ca-2021.crt /usr/local/share/ca-certificates
RUN update-ca-certificates
It installs the missing ca-certificates packages that should handle this error by I’m still getting it.
Ive also added prod-ca-2021.crt that is the default certificate from supabase
Im using the docker image golang:1.22-bookworm
Im currently out of ideas what is causing this after spending a day trying to debug it
Does anyone have idea what could be causing this ?
Ive added the package & certificate so should work