mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 12:16:20 +08:00
x509: Reallow duplicate attributes in CSRs.
This commit is contained in:
parent
94087a6660
commit
17b873a345
@ -158,8 +158,8 @@ func TestCreateSM2CertificateRequest(t *testing.T) {
|
||||
|
||||
func TestParseAliCertificateRequest(t *testing.T) {
|
||||
err := parseAndCheckCsr([]byte(csrFromAli))
|
||||
if err == nil {
|
||||
t.Fatal("ParseCertificate should fail when parsing certificate with duplicate extensions")
|
||||
if err != nil {
|
||||
t.Fatal("ParseCertificateRequest should succeed when parsing CSR with duplicate attributes")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user