Remove overwrote of SKID on saved certificates

This commit is contained in:
Diogo Monica 2015-06-15 21:10:13 -07:00 committed by David Lawrence
parent d39d16a717
commit b9dbc9e20a
1 changed files with 0 additions and 5 deletions

View File

@ -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