Fixed bug with RemoveCert

Signed-off-by: Diogo Monica <diogo@docker.com>
This commit is contained in:
Diogo Monica 2015-07-18 01:42:19 -07:00
parent e3591c0b10
commit 97a2d30d99
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ func (s *X509FileStore) RemoveCert(cert *x509.Certificate) error {
filename := s.fileMap[certID]
delete(s.fileMap, certID)
name := string(cert.RawSubject)
name := string(cert.Subject.CommonName)
// Filter the fingerprint out of this name entry
fpList := s.nameMap[name]