code: func (ra *RegistrationAuthorityImpl) DeactivateAuthorization(ctx context.Context, auth core.Authorization) error {
  	if auth.Status != core.StatusValid && auth.Status != core.StatusPending {
  		return berrors.MalformedError("only valid and pending authorizations can be deactivated")
  	}
  	err := ra.SA.DeactivateAuthorization(ctx, auth.ID)
  	if err != nil {
  		return berrors.InternalServerError(err.Error())
  	}
  	return nil
  }
docs: // DeactivateAuthorization deactivates a currently valid authorization