Can't seem to find any resource on creating a SSL connection to mysql using gorm. I am creating a non-ssl connection like this:
cfg := mysql.Config{
User: config.User,
Passwd: config.Password,
Addr: fmt.Sprintf("%s:%d", config.Host, config.Port),
Net: "tcp",
Params: options,
}
str := cfg.FormatDSN()
db, err := gorm.Open("mysql", str)
Passing 'ssl-ca' option in Param options with path to 'pem' file does not seem to work. Any heads up on this?