Fix nil key bug in AMQP mode.

This commit is contained in:
Jacob Hoffman-Andrews 2015-06-01 12:24:23 -07:00
parent b7e20ca66a
commit 6c66207834
1 changed files with 6 additions and 0 deletions

View File

@ -574,6 +574,12 @@ func (wfe *WebFrontEndImpl) Registration(response http.ResponseWriter, request *
return
}
// Registration objects contain a JWK object, which must be non-nil. We know
// the key of the updated registration object is going to be the same as the
// key of the current one, so we set it here. This ensures we can cleanly
// serialize the update as JSON to send via AMQP to the RA.
update.Key = currReg.Key
// Ask the RA to update this authorization.
updatedReg, err := wfe.RA.UpdateRegistration(currReg, update)
if err != nil {