generalized database connection cert support and added to postgres

This commit is contained in:
Tom Kozlowski
2016-11-22 15:29:22 -08:00
parent c643466d57
commit c21ffcc6c9
2 changed files with 16 additions and 22 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"io/ioutil"
)
func makeCert(tlsPoolName string, config MySQLConfig) (*tls.Config, error) {
func makeCert(tlsPoolName string, config DatabaseConfig) (*tls.Config, error) {
rootCertPool := x509.NewCertPool()
pem, err := ioutil.ReadFile(config.CaCertPath)
if err != nil {