x509: Reallow duplicate attributes in CSRs.

This commit is contained in:
Sun Yimin 2022-11-18 10:43:39 +08:00 committed by GitHub
parent 94087a6660
commit 17b873a345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,8 +158,8 @@ func TestCreateSM2CertificateRequest(t *testing.T) {
func TestParseAliCertificateRequest(t *testing.T) { func TestParseAliCertificateRequest(t *testing.T) {
err := parseAndCheckCsr([]byte(csrFromAli)) err := parseAndCheckCsr([]byte(csrFromAli))
if err == nil { if err != nil {
t.Fatal("ParseCertificate should fail when parsing certificate with duplicate extensions") t.Fatal("ParseCertificateRequest should succeed when parsing CSR with duplicate attributes")
} }
} }