Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Modifying rootca path
  • Loading branch information
Evan Langlais committed Apr 9, 2019
1 parent 3c7aa50 commit 90909e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions socketManager.go
Expand Up @@ -45,9 +45,9 @@ func (c *_client) 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 90909e4

Please sign in to comment.