-
-
Notifications
You must be signed in to change notification settings - Fork 72
.toCAA() doesn't handle CAA-values with spaces #178
Copy link
Copy link
Closed
Description
For fancy CAA records, e.g. ACME-CAA the parsing logic in .toCAA doesn't handle "CAA-value" data that contains spaces (but quoted)
Lines 157 to 165 in 6be5766
| func (r RR) toCAA() (CAA, error) { | |
| if expectedType := "CAA"; r.Type != expectedType { | |
| return CAA{}, fmt.Errorf("record type not %s: %s", expectedType, r.Type) | |
| } | |
| fields := strings.Fields(r.Data) | |
| if expectedLen := 3; len(fields) != expectedLen { | |
| return CAA{}, fmt.Errorf(`malformed CAA value; expected %d fields in the form 'flags tag "value"'`, expectedLen) | |
| } |
Example CAA record failing: 128 issue "letsencrypt.org; accounturi=..."
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels