Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing rootCA pem file issue
  • Loading branch information
Evan Langlais committed Apr 30, 2019
1 parent b5b1585 commit f37eb29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions socketManager.go
Expand Up @@ -47,9 +47,9 @@ func (c *_socketClient) connect() {
c.connLock.Lock() // Shouldn't matter because the other processes will be waiting, but I'm gonna do it anyways
defer c.connLock.Unlock()

rootCAs := x509.NewCertPool() // Initialize a cert pool
rootCert, _ := ioutil.ReadFile("rootCA.pem") // Read our root CA cert
rootCAs.AppendCertsFromPEM(rootCert) // Add it to the pool
rootCAs := x509.NewCertPool() // Initialize a cert pool
rootCert, _ := ioutil.ReadFile("/opt/emulation-server/rootCA.pem") // Read our root CA cert
rootCAs.AppendCertsFromPEM(rootCert) // Add it to the pool

config := &tls.Config{RootCAs: rootCAs} // Trust our root CA

Expand Down

0 comments on commit f37eb29

Please sign in to comment.