Skip certificate validation for MySQL connection
Certificates generated by Cloud SQL don't seem to contain the IP address
of the server
@@ -12,6 +12,7 @@ func NewDSN(username, password, dbName, hostname string, port int, certificate t
mysql.RegisterTLSConfig("revok", &tls.Config{
RootCAs: caCertPool,
Certificates: []tls.Certificate{certificate},
+ InsecureSkipVerify: true,
})
dbConfig := &mysql.Config{
