diff --git a/va/caa.go b/va/caa.go index 475aa57b6eb..3a75a48148f 100644 --- a/va/caa.go +++ b/va/caa.go @@ -297,7 +297,7 @@ func (va *ValidationAuthorityImpl) checkCAARecords( // If this is a wildcard name, remove the prefix var wildcard bool if strings.HasPrefix(hostname, `*.`) { - hostname = strings.TrimPrefix(ident.Value, `*.`) + hostname = strings.TrimPrefix(hostname, `*.`) wildcard = true } caaSet, err := va.getCAA(ctx, hostname)