Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion auth/cert/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ func LoadCertificate(clientCertPath, clientCertKeyPath string) (certificate tls.

func GetTransportWithLoadedCert(certificatesDirPath string, insecureTls bool, transport *http.Transport) (*http.Transport, error) {
// Remove once SystemCertPool supports windows

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can remove the comment, can you implement some tests ?

caCertPool, err := loadSystemRoots()
caCertPool, err := x509.SystemCertPool()
if caCertPool == nil {
caCertPool = x509.NewCertPool()
}

err = errorutils.CheckError(err)
if err != nil {
return nil, err
Expand Down
Loading