blob: 10053b73423d687a1e6a158804728653c6d82dde (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
package acme
import "errors"
var (
ErrBadCSR = errors.New("CSR is unacceptable")
ErrBadNonce = errors.New("Client sent an unacceptable anti-replay nonce")
ErrConnection = errors.New("Server could not connect to the client for DV")
ErrDnssec = errors.New("Server could not validate a DNSSEC signed domain")
ErrMalformed = errors.New("Request message was malformed")
ErrServerInternal = errors.New("Server experienced an internal error")
ErrTLS = errors.New("Server experienced a TLS error during DV")
ErrUnauthorized = errors.New("Client lacks sufficient authorization")
ErrUnknownHost = errors.New("Server could not resolve a domain name")
)
// Errors
var urnErrors = map[string]error{
"urn:acme:error:badCSR": ErrBadCSR,
"urn:acme:error:badNonce": ErrBadNonce,
"urn:acme:error:connection": ErrConnection,
"urn:acme:error:dnssec": ErrDnssec,
"urn:acme:error:malformed": ErrMalformed,
"urn:acme:error:serverInternal": ErrServerInternal,
"urn:acme:error:tls": ErrTLS,
"urn:acme:error:unauthorized": ErrUnauthorized,
"urn:acme:error:unknownHost": ErrUnknownHost,
}
func (p Problem) Error() string {
return p.Detail
}
|