Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

security: added CRL check [WIP] #5968

Closed
wants to merge 12 commits into from
Prev Previous commit
Next Next commit
Updated deps
  • Loading branch information
kayrus committed Jul 21, 2016
commit b7dea951d3a65a9abd2e1858b09ec6b0ce2e0c13
29 changes: 14 additions & 15 deletions cmd/vendor/github.com/cloudflare/cfssl/revoke/revoke.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/tlsutil/tlsutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ func revokeCheckHandler(req *http.Request, CRLpath string, revokeChecker *revoke
revoked, ok = revokeChecker.VerifyCertificate(cert)
}
if !ok {
return fmt.Errorf("cert check failed (CN=%s, Serial: %s)", cert.Subject.CommonName, cert.SerialNumber.String())
return fmt.Errorf("cert check failed")
}
if revoked {
return fmt.Errorf("Cert is revoked (CN=%s, Serial: %s)", cert.Subject.CommonName, cert.SerialNumber.String())
return fmt.Errorf("Cert is revoked")
}
}
return nil
Expand Down