title: SequelizeConnectionError: self signed certificate
body: <p>I am trying to connect to a PostgreSQL Database that I've set up in Heroku.</p>
  <pre class="lang-js prettyprint-override"><code>const { Sequelize, DataTypes, Model } = require(&quot;sequelize&quot;);
  
  // DB Configuration
  const sequelize = new Sequelize({
    database: &quot;[won't show db]&quot;,
    username: &quot;[won't show username]&quot;,
    password: &quot;[won't show password]&quot;,
    host: &quot;ec2-54-221-195-148.compute-1.amazonaws.com&quot;,
    port: 5432,
    dialect: &quot;postgres&quot;,
    dialectOptions: {
      ssl: true,
    },
  });
  
  </code></pre>
  <p>And this is what I am getting as the output:</p>
  <blockquote>
  <p>SequelizeConnectionError: self signed certificate</p>
  </blockquote>