Improve "zName not found" error message.

Fixes #964.
This commit is contained in:
Jacob Hoffman-Andrews 2015-11-29 12:40:21 -08:00
parent b3bfe1a079
commit 7a86228aa4
1 changed files with 3 additions and 2 deletions

View File

@ -387,8 +387,9 @@ func (va *ValidationAuthorityImpl) validateTLSWithZName(identifier core.AcmeIden
}
challenge.Error = &probs.ProblemDetails{
Type: probs.UnauthorizedProblem,
Detail: "Correct zName not found for TLS SNI challenge",
Type: probs.UnauthorizedProblem,
Detail: fmt.Sprintf("Correct zName not found for TLS SNI challenge. Found %s",
strings.Join(certs[0].DNSNames, ", ")),
}
challenge.Status = core.StatusInvalid
return challenge, challenge.Error