| 1 | /* |
| 2 | Package legacyx509 is a copy of certain parts of Go's crypto/x509 package. |
| 3 | It is based on Go 1.23, and has just the parts copied over required for |
| 4 | parsing X509 certificates. |
| 5 | |
| 6 | The primary reason this copy exists is to keep support for parsing PKCS7 |
| 7 | messages containing Simple Certificate Enrolment Protocol (SCEP) requests |
| 8 | from Windows devices. Go 1.23 made a change marking certificates with a |
| 9 | critical authority key identifier as invalid, which is mandated by RFC 5280, |
| 10 | but apparently Windows marks those specific certificates as such, resulting |
| 11 | in those SCEP requests failing from being parsed correctly. |
| 12 | */ |
| 13 | |
| 14 | package legacyx509 |