|
|
|
|
@ -7,6 +7,7 @@ package acme
|
|
|
|
|
import (
|
|
|
|
|
"crypto"
|
|
|
|
|
"crypto/x509"
|
|
|
|
|
"encoding/json"
|
|
|
|
|
"errors"
|
|
|
|
|
"fmt"
|
|
|
|
|
"net/http"
|
|
|
|
|
@ -292,7 +293,7 @@ type Directory struct {
|
|
|
|
|
// Renewal Information (ARI) Extension.
|
|
|
|
|
RenewalInfoURL string
|
|
|
|
|
|
|
|
|
|
// Term is a URI identifying the current terms of service.
|
|
|
|
|
// Terms is a URI identifying the current terms of service.
|
|
|
|
|
Terms string
|
|
|
|
|
|
|
|
|
|
// Website is an HTTP or HTTPS URL locating a website
|
|
|
|
|
@ -531,6 +532,16 @@ type Challenge struct {
|
|
|
|
|
// when this challenge was used.
|
|
|
|
|
// The type of a non-nil value is *Error.
|
|
|
|
|
Error error
|
|
|
|
|
|
|
|
|
|
// Payload is the JSON-formatted payload that the client sends
|
|
|
|
|
// to the server to indicate it is ready to respond to the challenge.
|
|
|
|
|
// When unset, it defaults to an empty JSON object: {}.
|
|
|
|
|
// For most challenges, the client must not set Payload,
|
|
|
|
|
// see https://tools.ietf.org/html/rfc8555#section-7.5.1.
|
|
|
|
|
// Payload is used only for newer challenges (such as "device-attest-01")
|
|
|
|
|
// where the client must send additional data for the server to validate
|
|
|
|
|
// the challenge.
|
|
|
|
|
Payload json.RawMessage
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// wireChallenge is ACME JSON challenge representation.
|
|
|
|
|
|