Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wildcard orders being rejected with "illegal character: '*'" error #126

Closed
rmbolger opened this issue May 3, 2018 · 2 comments
Closed

Comments

@rmbolger
Copy link
Contributor

rmbolger commented May 3, 2018

I believe PR #122 accidentally introduced a bug that now rejects wildcard domain identifiers in new order requests.

pebble/wfe/wfe.go

Lines 767 to 772 in 2462e27

// isDNSCharacter is ported from Boulder's `policy/pa.go` implementation.
func isDNSCharacter(ch byte) bool {
return ('a' <= ch && ch <= 'z') ||
('A' <= ch && ch <= 'Z') ||
('0' <= ch && ch <= '9') ||
ch == '.' || ch == '-'

pebble/wfe/wfe.go

Lines 811 to 815 in 2462e27

for _, ch := range []byte(rawDomain) {
if !isDNSCharacter(ch) {
return acme.MalformedProblem(fmt.Sprintf(
"Order included DNS identifier with a value containing an illegal character: %q",
ch))

Should the * character be added to the allowed list in isDNSCharacter?

@cpu
Copy link
Contributor

cpu commented May 3, 2018

Good catch, thanks! I based #122 on Boulder's PA.WillingToIssue but totally forgot that wildcard support is predicated on PA.WillingToIssueWildcard and should have been considered for Pebble.

cpu pushed a commit that referenced this issue May 3, 2018
This is a quick fix for the but introduced in PR #122. `*` is not technically a valid DNS character but this commit allows Pebble to treat it as such for a short-term fix to wildcard issuance that was broken in #126.
@cpu
Copy link
Contributor

cpu commented May 3, 2018

Fixed in master with c5ebb21. Thanks @rmbolger !

@cpu cpu closed this as completed May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants