diff --git a/pkg/verify/certificate_identity.go b/pkg/verify/certificate_identity.go index 7487c147..68fa7ad6 100644 --- a/pkg/verify/certificate_identity.go +++ b/pkg/verify/certificate_identity.go @@ -115,7 +115,7 @@ func (s SubjectAlternativeNameMatcher) Verify(actualCert certificate.Summary) er return nil } -func NewIssuserMatcher(issuerValue, regexpStr string) (IssuerMatcher, error) { +func NewIssuerMatcher(issuerValue, regexpStr string) (IssuerMatcher, error) { r, err := regexp.Compile(regexpStr) if err != nil { return IssuerMatcher{}, err @@ -178,7 +178,7 @@ func NewShortCertificateIdentity(issuer, issuerRegex, sanValue, sanRegex string) return CertificateIdentity{}, err } - issuerMatcher, err := NewIssuserMatcher(issuer, issuerRegex) + issuerMatcher, err := NewIssuerMatcher(issuer, issuerRegex) if err != nil { return CertificateIdentity{}, err } diff --git a/pkg/verify/certificate_identity_test.go b/pkg/verify/certificate_identity_test.go index 158d5eff..acb281b2 100644 --- a/pkg/verify/certificate_identity_test.go +++ b/pkg/verify/certificate_identity_test.go @@ -138,7 +138,7 @@ func certIDForTesting(sanValue, sanRegex, issuer, issuerRegex, runnerEnv string) return CertificateIdentity{}, err } - issuerMatcher, err := NewIssuserMatcher(issuer, issuerRegex) + issuerMatcher, err := NewIssuerMatcher(issuer, issuerRegex) if err != nil { return CertificateIdentity{}, err }