Skip to content

Commit 6e540be

Browse files
author
Julien Pivotto
authored
Merge pull request #283 from lupine/patch-1
Generate hashCAFile with SHA256
2 parents 3ebd397 + 112a9d4 commit 6e540be

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

.circleci/config.yml

-14
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,6 @@ workflows:
4343
tests:
4444
jobs:
4545
# Supported Go versions are synced with github.com/prometheus/client_golang.
46-
- test:
47-
name: go-1-9
48-
go_version: "1.9"
49-
use_gomod_cache: false
50-
- test:
51-
name: go-1-10
52-
go_version: "1.10"
53-
use_gomod_cache: false
54-
- test:
55-
name: go-1-11
56-
go_version: "1.11"
57-
- test:
58-
name: go-1-12
59-
go_version: "1.12"
6046
- test:
6147
name: go-1-13
6248
go_version: "1.13"

config/http_config.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ package config
1717

1818
import (
1919
"bytes"
20-
"crypto/md5"
20+
"crypto/sha256"
2121
"crypto/tls"
2222
"crypto/x509"
2323
"fmt"
@@ -533,7 +533,7 @@ func (t *tlsRoundTripper) getCAWithHash() ([]byte, []byte, error) {
533533
if err != nil {
534534
return nil, nil, err
535535
}
536-
h := md5.Sum(b)
536+
h := sha256.Sum256(b)
537537
return b, h[:], nil
538538

539539
}

0 commit comments

Comments
 (0)