diff --git a/precerts.go b/precerts.go index d3c7b38..dbc2151 100644 --- a/precerts.go +++ b/precerts.go @@ -131,7 +131,9 @@ func ReconstructPrecertTBS (tbs *TBSCertificate) (*TBSCertificate, error) { } for _, ext := range tbs.Extensions { - if !ext.Id.Equal(oidExtensionSCT) { + switch { + case ext.Id.Equal(oidExtensionSCT): + default: precertTBS.Extensions = append(precertTBS.Extensions, ext) } }