From b9dbc9e20a38efa477cd078e2f88cebbb178738d Mon Sep 17 00:00:00 2001 From: Diogo Monica Date: Mon, 15 Jun 2015 21:10:13 -0700 Subject: [PATCH] Remove overwrote of SKID on saved certificates --- trustmanager/X509FileStore.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/trustmanager/X509FileStore.go b/trustmanager/X509FileStore.go index 505955a805..fa057f021a 100644 --- a/trustmanager/X509FileStore.go +++ b/trustmanager/X509FileStore.go @@ -1,7 +1,6 @@ package trustmanager import ( - "crypto/sha256" "crypto/x509" "errors" "io/ioutil" @@ -89,10 +88,6 @@ func (s X509FileStore) addNamedCert(cert *x509.Certificate, filename string) err return errors.New("certificate validation failed") } - // Overwrite every certificate SubjectKeyID with a SHA256 version. - subjectKeyID := sha256.Sum256(cert.Raw) - cert.SubjectKeyId = subjectKeyID[:] - // Add the certificate to our in-memory storage s.fingerprintMap[fingerprint] = cert s.fileMap[fingerprint] = filename