BIOS Certificate

Check BIOS Options on the DUT. The DUT must be a Lenovo system with the Linux think-lmi driver loaded, and needs sudo.

AttributeTypeRequiredDefaultDescription
cmdconstYesbios certificate managementCommand Name
namestringYesName to uniquely identify the teststep. This name will show up in reports, logs and the WebUI
transportTransportObjectYesAdditional transport options
optionsOptionsObjectNoAdditional command options
parametersBIOS Certificate OptionsYesOptions passed into BIOS Certificate

BIOS Certificate Options

AttributeTypeRequiredDefaultDescription
passwordstringEither of*BIOS Password
old_passwordstringEither of*Old BIOS Password
cert_pathstringEither of*BIOS Certificate
key_pathstringEither of*BIOS Certificate Private Key
serialstringEither of*Serial number of device
expectBIOS Certificate Expect OptionsNoArray of expected BIOS Certificate Options

BIOS Certificate Expect Options

AttributeTypeRequiredDefaultDescription
should_failboolNofalseExpect the firmware to refuse the operation. See Expecting a failure.

BIOS Certificate Example

- cmd: bios certificate management
  name: Enable certificate
  transport: *transport
  parameters:
    command: enable
    password: mypassword
    cert_path: /root/default-tools/system-suite/4k/new/cert.pem
- cmd: bios certificate management
  name: Check certificate thumbprint
  transport: *transport
  parameters:
    command: check
    cert_path: /root/default-tools/system-suite/4k/new/cert.pem
- cmd: bios certificate management
  name: Disable certificate
  transport: *transport
  parameters:
    command: disable
    key_path: /root/default-tools/system-suite/4k/new/key.pem
    password: mypassword
- cmd: bios certificate management
  name: Clear certificate
  transport: *transport
  parameters:
    command: clear
    key_path: /root/default-tools/system-suite/4k/new/key.pem
- cmd: bios certificate management
  name: Update password
  transport: *transport
  parameters:
    command: set-password
    old_password: mypassword
    password: mynewpassword