From 32704923648edd4c4adc657abce57288a660574c Mon Sep 17 00:00:00 2001 From: Jason Baker Date: Fri, 13 May 2022 09:06:09 -0700 Subject: [PATCH] Address comments. --- acme/acme.go | 2 +- acme/jws.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/acme/acme.go b/acme/acme.go index 6c145f8b80..df574308d3 100644 --- a/acme/acme.go +++ b/acme/acme.go @@ -309,7 +309,7 @@ func (c *Client) UpdateReg(ctx context.Context, acct *Account) (*Account, error) // AccountKeyRollover attempts to transition a client's account key to a new key. // On success client's Key is updated which is not concurrency safe. // On failure an error will be returned. -// If the error is already registered with the ACME provider the following is true: +// The new key is already registered with the ACME provider if the following is true: // - error is of type acme.Error // - StatusCode should be 409 (Conflict) // - Location header will have the KID of the associated account diff --git a/acme/jws.go b/acme/jws.go index b18a884358..b38828d859 100644 --- a/acme/jws.go +++ b/acme/jws.go @@ -52,11 +52,11 @@ type jsonWebSignature struct { // The claimset is marshalled using json.Marshal unless it is a string. // In which case it is inserted directly into the message. // -// If kid is non-empty, its quoted value is inserted in the protected head +// If kid is non-empty, its quoted value is inserted in the protected header // as "kid" field value. Otherwise, JWK is computed using jwkEncode and inserted // as "jwk" field value. The "jwk" and "kid" fields are mutually exclusive. // -// If nonce is non-empty, its quoted value is inserted in the protected head. +// If nonce is non-empty, its quoted value is inserted in the protected header. // // See https://tools.ietf.org/html/rfc7515#section-7. func jwsEncodeJSON(claimset interface{}, key crypto.Signer, kid KeyID, nonce, url string) ([]byte, error) {