This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
AWS will be updating ssl certs next month and have set a hard deadline of Feb 5th 2020. | |
If working with nodejs and the mysql npm package you'll need to obtain the newest | |
cert to connect via ssl. Below shows how to connect your cert using the ssl option. | |
Obtain the cert from AWS here (CA-2019): | |
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html | |
``` | |
require('dotenv').config(); | |
const fs = require("fs"); |