SSL issues with ForestAdmin


I have some issues configuring forest admin:

Expected behavior

  1. It should connect to the database
  2. should use SSL encryption

Actual behavior

  1. I have an Heroku postgres. Error form lumber:
✖ Connecting to your database
> Cannot connect to the database due to the following error:
> SequelizeConnectionError: self signed certificate
  1. is without SSL and when I try, I’m rediected to the non-ssl version


Please provide any relevant information about your setup.

  • Package Version: last
  • Express Version: last
  • Sequelize Version: last
  • Database Dialect: postgres
  • Database Version: 12.3
  • Project Name: finary

Thanks !

Hello @JulienBlancher, thanks for opening a thread and welcome to our community :confetti_ball::tada:

I can see that your database is using self signed certificate. Sequelize will automatically reject it, unless we tell it not to.

Under models/index.js you should be able to find a line such as the following:

databaseOptions.dialectOptions.ssl = true;

Changing the ssl option to an object with:

ssl: {
    require: true,
    rejectUnauthorized: false, // << this is the option to prevent self signed error

Should do the trick :slight_smile:

Please tell me if it helps out !


1 Like

Many thanks Steve, I confirm it’s working !

Another question, do you have any document explaining the flow of data and how do you guarantee its security and private usage ?

1 Like

Hi @JulienBlancher

  1. A good place to start would be the following article - A deep-dive into Forest Admin’s architecture
  2. Don’t take our word for it, inspect Network Activity In Chrome DevTools when performing various actions in Forest Admin (displaying a collection of records, creating, editing…)
  3. Want to dig further? The agents are open-source, feel free to inspect the code on our github repos (forest-express & forest-express-sequelize)


Hello @Steve_Bunlon ,

I have exactly the same issue as Julien,
How do I access models/index.js? Directly from heroku?

I was only on signup et connecting to my DB phase. I still didn’t get any forest code folder

Hi @kasro :wave:
This issue has been reported here and Forest Admin team taking this issue seriously: a fix should be released in a few days. In the meanwhile, I suggest you to follow the suggestion given by @Steve_Bunlon.

How do I access models/index.js? Directly from heroku?

You have to edit the file that has been generated during your onboarding in your local computer in the folder where you ran the command lumber generate. However if you are facing this issue during the install, you can’t change anything right now: you have to wait for the release of lumber (or use a non-self-signed certificate on heroku, which is unfortunately not free I guess) Be sure you will be notified as soon as it has been released.

Thank you for your patience then :pray:

Hello, @rap2h, some update on this issue?

Hello @kasro :wave:

We are still working on the fix, sorry for the inconvenience. However, knowing that you allready generated your project, this fix should not matter for you actually.

Lumber is used to generate projects, and once your project is generated, lumber is out of the process. To solve your issue, you have to edit your models/index.js file directly from the source generated (and then deploy the new code to your Heroku instance).

If you really want to solve your issue with lumber (once the fix has been released) you will need to create a new project :disappointed:.

That’s why I really encourage you to solve your issue by editing the code on your own source from your project, you will be running in 2 minutes !

I hope it helps out,


Hello @Steve_Bunlon,

I got this error > Cannot connect to the database due to the following error:

SequelizeConnectionError: self signed certificate
before have the folder generated by lumber…

I migrated my DB to Amazon EC2 Postgres and stopped using Heroku, but I got exactly the same error!

Please what can I do here.