Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

By Joseph Cox
When I try to make a call to my DO PostGres database from my DO App, I get an error: {“code”:“SELF_SIGNED_CERT_IN_CHAIN”}
I’ve got the CA-Cert setup in my database connection:
databaseConfig = {
host: process.env.DBhost,
port: process.env.DBport,
database: process.env.database,
user: process.env.DBusername,
password: process.env.DBpassword,
ssl: {
rejectUnauthorized: true,
ca: process.env.CA_CERT,
},
sslmode: 'require'
};
Here are the summaries of what I have working: Build & Deploy: Local System: Good DO Hosted App: Good
Non-PostGres Pinging Request: Local System: Good DO Hosted App: Good
DO PostGres Pinging Request: Local System: Good DO Hosted App: Fail {“code”:“SELF_SIGNED_CERT_IN_CHAIN”}
This suggests that the DO Host alone can’t connect for some reason.
I’ve tried changing node middleware - no effect.
I’ve tried the VPC approach but I can’t seem to add my App to it and it shouldn’t matter anyway.
I’ve tried to add my own Let’s Encrypt certs to the DO App, but don’t have Sudo access and it shouldn’t matter anyway.
What do I need to do to make this work?
Aakash Singh
Aakash Singh
Frank Tufano
fullammo
4ae272398ee6445a9bf73f4cd632b5
eddie
Taha Aziz Ben Ali
Telmo Valverde
Alexandre Herlinvaux
52d4eff26a544eefb189e2005836b2