Error: self signed certificate in certificate chain
Hello, I am a new user of drizzle and trying to run the command for the first time:
But I got this error
I am connecting drizzle to my Supabase instance, and my config file is like this
I have already enabled ssl, why does this happen and how to resolve this?
21 Replies
Related to https://github.com/drizzle-team/drizzle-orm/issues/831#issue-1781522128
Even I am trying to find how to connect to Remote Postgres (Encrypted), from localhost using Drizzle
GitHub
[BUG]:
dbCredentials.ssl
is not working while introspecting · Iss...What version of drizzle-orm are you using? 0.27.0 What version of drizzle-kit are you using? 0.19.2 Describe the Bug The ssl option is not working while running introspect, // drizzle.config.ts exp...
So it’s not a drizzle problem?
Also having this issue...
Hello I'm a Supabase user too
Works great. Any reason you don't use the connection string?
I tried using connection string too but it asks for SSL. I guess your supabase db doesnt require SSL connection?
Will see asap, it is not a fresh db, maybe something in my config 🤔
![No description](https://cdn.answeroverflow.com/1140009738852118742/CleanShot_2023-08-12_at_21.50.542x.png)
true, it is disabled on my project
So it doesnt require you to connect with SSL?
Nope, no need.
So connection string doesnt work for me either, even after I turned off SSL. I got the same error.
maybe try to restart your db (from supabase dashboard).
I know support is really fast qnd helpful if you still encounter this issue.
I have tried restarting the db, how to get their support? I thought the discord channel here is the support
I mean Supabase support. Maybe they can help you looking at your project configuration.
I've never used supabase, but a quick google told me it is possible to disable SSL enforcement in your database through the CLI
Ideally you use SSL, to do so you would download the root certificate for your database following these instructions https://supabase.com/docs/guides/database/connecting-to-postgres#connecting-with-ssl
You then need to configure nodejs to either pick up that root certificate, or configure your connection to pick it up. Last I checked, drizzle-kit doesn't support that
You can either configure a path for nodejs to look for extra certificates to use for SSL verification https://nodejs.org/api/cli.html#node_extra_ca_certsfile
Or configure it on your database connection (the preferred approach)
Connecting to your database | Supabase Docs
Explore the options for connecting to your Postgres database.