Files
cert-manager/pkg
Ashley Davisandjetstack-bot c686a2f69a fix check for self-signed certs in EncodeX509Chain
see also https://github.com/jetstack/cert-manager/issues/4142

EncodeX509Chain checked for self-signed certs by comparing the subject
and issuer of the cert in question, which is invalid since it's
perfectly fine for those to match.

the correct behavior is to use cert.CheckSignatureFrom(cert). this bug
was exposed in 1.4 when ParseSingleCertificateChain started using
EncodeX509Chain in the critical path of several issuers; when end-users
had leaf certificates with subjects matching their issuer's subject, the
bug was triggered.

includes newly written tests for EncodeX509Chain and a test for
ParseSingleCertificateChain

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2021-07-21 16:50:07 +00:00
..
2021-01-08 15:05:32 +01:00
2021-05-21 12:04:11 +01:00
2021-05-21 12:04:05 +01:00
2021-03-04 13:04:38 -05:00
2021-05-19 13:05:59 +01:00
2021-05-21 12:04:05 +01:00