host_certificates - openconfig/featureprofiles GitHub Wiki

Credentialz-3: Host Certificates

Summary

Test that Credentialz can properly fetch and push SSH host certificates, and that the DUT sends this certificate during SSH authentication.

Procedure

  • Fetch the DUT's public key using gnsi.Credentialz
    • If DUT doesnt have one, generate and set the private key using gnsi.Credentialz.
  • Sign the DUT's public key with the ca key to create a host certificate.
  • Add the newly created certificate to the DUT using gnsi.Credentialz
  • Perform the following tests and assert the expected result:
    • Case 1: Success
      • SSH to the device and assert that the host key returned is the host key that was pushed in the test set up
      • Ensure telemetry values for version and created-on match the values set by RotateHostParameters for /oc-sys:system/oc-sys:ssh-server/oc-sys:state:active-host-certificate-version and /oc-sys:system/oc-sys:ssh-server/oc-sys:state:active-host-certificate-created-on

OpenConfig Path and RPC Coverage

The below yaml defines the OC paths intended to be covered by this test. OC paths used for test setup are not listed here.

paths:
  ## State Paths ##
  /system/ssh-server/state/active-host-certificate-version:
  /system/ssh-server/state/active-host-certificate-created-on:
    
rpcs:
  gnsi:
    credentialz.v1.Credentialz.GetPublicKeys:
    credentialz.v1.Credentialz.RotateHostParameters:

Minimum DUT platform requirement

N/A

⚠️ **GitHub.com Fallback** ⚠️