Skip to content

Commit

Permalink
Don't set twice SSL_CERT_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
ffurano committed Jun 11, 2021
1 parent 007005c commit eba9d4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/eosclient/eosgrpc/eos_http/eoshttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ func (opt *Options) Init() error {
}
if opt.ClientCADirs != "" {
os.Setenv("SSL_CERT_DIR", opt.ClientCADirs)
} else {
os.Setenv("SSL_CERT_DIR", "/etc/grid-security/certificates")
}
os.Setenv("SSL_CERT_DIR", "/etc/grid-security/certificates")

cert, err := tls.LoadX509KeyPair(opt.ClientCertFile, opt.ClientKeyFile)
if err != nil {
Expand Down

0 comments on commit eba9d4d

Please sign in to comment.