diff --git a/acme/client/resources.go b/acme/client/resources.go index 8bf539b..92e5a92 100644 --- a/acme/client/resources.go +++ b/acme/client/resources.go @@ -104,8 +104,8 @@ func (c *Client) Rollover(newKey crypto.Signer) error { oldKey := keys.JWKForSigner(account.Signer) rolloverRequest := struct { - Account string - OldKey jose.JSONWebKey + Account string `json:"account"` + OldKey jose.JSONWebKey `json:"oldKey"` }{ Account: account.ID, OldKey: oldKey, @@ -171,7 +171,7 @@ func (c *Client) CreateOrder(order *resources.Order) error { } req := struct { - Identifiers []resources.Identifier + Identifiers []resources.Identifier `json:"identifiers"` }{ Identifiers: order.Identifiers, } diff --git a/shell/commands/finalize/finalize.go b/shell/commands/finalize/finalize.go index 896d265..ffa8880 100644 --- a/shell/commands/finalize/finalize.go +++ b/shell/commands/finalize/finalize.go @@ -90,7 +90,7 @@ func finalizeHandler(c *ishell.Context) { } finalizeRequest := struct { - CSR string + CSR string `json:"csr"` }{ CSR: b64csr, } diff --git a/shell/commands/getAcct/getAcct.go b/shell/commands/getAcct/getAcct.go index b1b9188..1420414 100644 --- a/shell/commands/getAcct/getAcct.go +++ b/shell/commands/getAcct/getAcct.go @@ -26,7 +26,7 @@ func getAccountHandler(c *ishell.Context) { client := commands.GetClient(c) getAcctReq := struct { - OnlyReturnExisting bool + OnlyReturnExisting bool `json:"onlyReturnExisting"` }{ OnlyReturnExisting: true, } diff --git a/shell/commands/revokeCert/revokeCert.go b/shell/commands/revokeCert/revokeCert.go index feeb2b6..118daed 100644 --- a/shell/commands/revokeCert/revokeCert.go +++ b/shell/commands/revokeCert/revokeCert.go @@ -121,8 +121,8 @@ func revokeCertHandler(c *ishell.Context) { certBytes := pemBlock.Bytes revokeRequest := struct { - Certificate string - Reason int + Certificate string `json:"certificate"` + Reason int `json:"reason"` }{ Certificate: base64.RawURLEncoding.EncodeToString(certBytes), Reason: opts.reason,