Following up on a previous answer to this question, I'm using RMySQL to connect to my Amazon RDS instance. I can connect without SSL, but would prefer to connect over SSL using the provided certificate for my EC2 instance. This method seems to work fine using Sequel Pro.
However, when attempting the same connection in R using the RMySQL package, I get the following error:
library(RMySQL)
con <- dbConnect(MySQL(), default.file='~/Desktop/mysql.cfg')
Error in mysqlNewConnection(drv, ...) :
RS-DBI driver: (Failed to connect to database: Error: SSL connection error: SSL_CTX_set_default_verify_paths failed
)
In addition to my regular authentication parameters, the mysql.cfg
file contains the path to my .pem file provided by Amazon, (e.g., ssl-ca='~/.ssh/file.pem'). Am I missing an additional parameter?