Skip to content

connect to amazon rds over ssl in sequelize #9712

Closed

Description

@dagda1

I am trying to connect to a mysql amazon RDS connection over ssl from sequelize:

my config looks like this:

      "production": {
        "username": "aa",
        "password": "aa",
        "database": "db",
        "host": "hots.eu-west-1.rds.amazonaws.com",
        "dialect": "mysql",
        "port": "3306",
        "logging": true,
        "pool": { "maxConnections": 5, "maxIdleTime": 30 },
        "language": "en",
        "ssl": true,
        "dialectOptions": { "ssl": true }
      }

I am getting a SequelizeConnectionError: connect ETIMEDOUT error.

Do I have to reference the ca in the dialiectOptions or is ssl: true enough?

Is there a way to get more logging as to what is going on?

Activity

  1. dagda1 commented on Jul 23, 2018

    @dagda1
    Author

    "ssl": true is enough :)

  2. tylercollier commented on Apr 14, 2020

    @tylercollier

    For anyone else who comes here, the "ssl": true is enough phrase is referring to what needs to go within the dialectOptions section. The other "ssl": true outside of dialectOptions does nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions