code: def set_chuid(ctx, management_key, pin):
      
      controller = ctx.obj['controller']
      _ensure_authenticated(ctx, controller, pin, management_key)
      controller.update_chuid()
docs: Generate and set a CHUID on the YubiKey.